StyleConstants.Italic : StyleConstants « javax.swing.text « Java by API






StyleConstants.Italic

  


import javax.swing.text.AttributeSet;
import javax.swing.text.StyleConstants;

public class Main {
  public static void main(String[] argv) {
    // Check if character-based attribute
    boolean b = StyleConstants.Italic instanceof AttributeSet.CharacterAttribute;
    b = StyleConstants.LineSpacing instanceof AttributeSet.CharacterAttribute; 

    // Check if paragraph-based attribute
    b = StyleConstants.LineSpacing instanceof AttributeSet.ParagraphAttribute; 
    b = StyleConstants.Italic instanceof AttributeSet.ParagraphAttribute; 
  }
}

   
    
  








Related examples in the same category

1.StyleConstants.Bold
2.StyleConstants.Foreground
3.StyleConstants.LineSpacing
4.StyleConstants: setAlignment(MutableAttributeSet a, int align)
5.StyleConstants: setBold(MutableAttributeSet a, boolean b)
6.StyleConstants: setComponent(MutableAttributeSet a, Component c)
7.StyleConstants: setFirstLineIndent(MutableAttributeSet a, float i)
8.StyleConstants: setFontFamily(MutableAttributeSet a, String fam)
9.StyleConstants: setForeground(MutableAttributeSet a, Color fg)
10.StyleConstants: setFontSize(MutableAttributeSet a, int s)
11.StyleConstants: setIcon(MutableAttributeSet a, Icon c)
12.StyleConstants: setItalic(MutableAttributeSet a, boolean b)
13.StyleConstants: setLeftIndent(MutableAttributeSet a, float i)
14.StyleConstants: setRightIndent(MutableAttributeSet a, float i)
15.StyleConstants: setSpaceAbove(MutableAttributeSet a, float i)
16.StyleConstants: setSpaceBelow(MutableAttributeSet a, float i)
17.StyleConstants: setTabSet(MutableAttributeSet a, TabSet tabs)
18.StyleConstants: setUnderline(MutableAttributeSet a, boolean b)