Exemplo n.º 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());
 }
Exemplo n.º 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());
 }
Exemplo n.º 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());
 }