Example #1
0
 /**
  * Returns whether this component is italic. 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 italic
  */
 public boolean isItalic() {
   if (italic == null) {
     return parent != null && parent.isItalic();
   }
   return italic;
 }