public static boolean isItalic(AttributeSet a){
  Boolean italic=(Boolean)a.getAttribute(Italic);
  if (italic != null) {
    return italic.booleanValue();
  }
  return false;
}

public static boolean isItalic ( AttributeSet a ) { Boolean italic = ( Boolean ) a . getAttribute ( Italic ) ; if ( italic != null ) { return italic . booleanValue ( ) ; } return false ; }
checks whether the italic attribute is set .
