示例#1
0
 /** Copy constructor for <CODE>Phrase</CODE>. */
 public Phrase(Phrase phrase) {
   super();
   this.addAll(phrase);
   leading = phrase.getLeading();
   font = phrase.getFont();
   setHyphenation(phrase.getHyphenation());
 }
示例#2
0
 /**
  * Constructs a <CODE>Phrase</CODE> with a certain <CODE>Chunk</CODE> and a certain leading.
  *
  * @param leading the leading
  * @param chunk a <CODE>Chunk</CODE>
  */
 public Phrase(float leading, Chunk chunk) {
   this.leading = leading;
   super.add(chunk);
   font = chunk.getFont();
   setHyphenation(chunk.getHyphenation());
 }
示例#3
0
 /**
  * Constructs a <CODE>Phrase</CODE> with a certain <CODE>Chunk</CODE>.
  *
  * @param chunk a <CODE>Chunk</CODE>
  */
 public Phrase(Chunk chunk) {
   super.add(chunk);
   font = chunk.getFont();
   setHyphenation(chunk.getHyphenation());
 }