Esempio n. 1
0
 /**
  * Sets the RtfDocument this RtfChunk belongs to.
  *
  * @param doc The RtfDocument to use
  */
 public void setRtfDocument(RtfDocument doc) {
   super.setRtfDocument(doc);
   this.font.setRtfDocument(this.document);
 }
 /**
  * Sets the RtfDocument this RtfColor belongs to
  *
  * @param doc The RtfDocument to use
  */
 public void setRtfDocument(RtfDocument doc) {
   super.setRtfDocument(doc);
   if (document != null) {
     this.colorNumber = document.getDocumentHeader().getColorNumber(this);
   }
 }