/** * Returns whether this component is bold. This uses the parent's setting if * this component hasn't been set. false is returned if none of the parent * chain has been set. * * @return whether the component is bold */ public boolean isBold() { if ( bold == null ) { return parent != null && parent.isBold(); } return bold; }
/** * Returns whether this component is bold. This uses the parent's setting if * this component hasn't been set. false is returned if none of the parent * chain has been set. * * @return whether the component is bold */ public boolean isBold() { if ( bold == null ) { return parent != null && parent.isBold(); } return bold; }