/** Copy constructor for <CODE>Phrase</CODE>. */ public Phrase(Phrase phrase) { super(); this.addAll(phrase); leading = phrase.getLeading(); font = phrase.getFont(); setHyphenation(phrase.getHyphenation()); }
/** * 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()); }
/** * 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()); }