Beispiel #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());
 }
Beispiel #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());
 }
Beispiel #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());
 }