public void setRtfDocument ( RtfDocument doc ) { this . document = doc ; if ( document != null ) { this . fontNumber = document . getDocumentHeader ( ) . getFontNumber ( this ) ; } if ( this . color != null ) { this . color . setRtfDocument ( this . document ) ; } }
Sets the RtfDocument this RtfFont belongs to