Introduction
boolean b; // Check if character-based attribute b = StyleConstants.Italic instanceof AttributeSet.CharacterAttribute; // true b = StyleConstants.LineSpacing instanceof AttributeSet.CharacterAttribute; // false // Check if paragraph-based attribute b = StyleConstants.LineSpacing instanceof AttributeSet.ParagraphAttribute; // true b = StyleConstants.Italic instanceof AttributeSet.ParagraphAttribute; // false