KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > text > StyleConstants

javax.swing.text
Class StyleConstants

java.lang.Object
  extended by javax.swing.text.StyleConstants
Direct Known Subclasses:
StyleConstants.CharacterConstants, StyleConstants.ColorConstants, StyleConstants.FontConstants, StyleConstants.ParagraphConstants
See Also:
Top Examples, Source Code

public static final Object Alignment
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int ALIGN_CENTER
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int ALIGN_JUSTIFIED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int ALIGN_LEFT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int ALIGN_RIGHT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Background
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object BidiLevel
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Bold
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object ComponentAttribute
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String ComponentElementName
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object ComposedTextAttribute
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Family
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object FirstLineIndent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object FontFamily
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object FontSize
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Foreground
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static int getAlignment(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Color getBackground(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static int getBidiLevel(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Component getComponent(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static float getFirstLineIndent(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static String getFontFamily(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static int getFontSize(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Color getForeground(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Icon getIcon(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static float getLeftIndent(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static float getLineSpacing(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static float getRightIndent(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static float getSpaceAbove(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static float getSpaceBelow(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static TabSet getTabSet(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object IconAttribute
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String IconElementName
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean isBold(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean isItalic(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean isStrikeThrough(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean isSubscript(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean isSuperscript(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean isUnderline(AttributeSet a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Italic
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object LeftIndent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object LineSpacing
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object ModelAttribute
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object NameAttribute
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Orientation
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object ResolveAttribute
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object RightIndent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setAlignment(MutableAttributeSet a,
                                int align)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setBackground(MutableAttributeSet a,
                                 Color fg)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setBidiLevel(MutableAttributeSet a,
                                int o)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setBold(MutableAttributeSet a,
                           boolean b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[41]Change style features
By Anonymous on 2002/09/11 19:05:29  Rate
Font newFont = UIManager.getFont ( "TextPane.font" ) ; 
 Style defaultStyle = getStyle ( "default" ) ; 
 StyleConstants.setFontFamily ( defaultStyle, newFont.getFamily (  )  ) ; 
 StyleConstants.setFontSize ( defaultStyle, newFont.getSize (  )  ) ; 
 StyleConstants.setItalic ( defaultStyle, newFont.isItalic (  )  ) ; 
 StyleConstants.setBold ( defaultStyle, newFont.isBold (  )  ) ; 
 repaint (  ) ;


public static void setComponent(MutableAttributeSet a,
                                Component c)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setFirstLineIndent(MutableAttributeSet a,
                                      float i)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setFontFamily(MutableAttributeSet a,
                                 String fam)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setFontSize(MutableAttributeSet a,
                               int s)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setForeground(MutableAttributeSet a,
                                 Color fg)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setIcon(MutableAttributeSet a,
                           Icon c)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setItalic(MutableAttributeSet a,
                             boolean b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setLeftIndent(MutableAttributeSet a,
                                 float i)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setLineSpacing(MutableAttributeSet a,
                                  float i)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setRightIndent(MutableAttributeSet a,
                                  float i)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setSpaceAbove(MutableAttributeSet a,
                                 float i)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setSpaceBelow(MutableAttributeSet a,
                                 float i)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setStrikeThrough(MutableAttributeSet a,
                                    boolean b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setSubscript(MutableAttributeSet a,
                                boolean b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setSuperscript(MutableAttributeSet a,
                                  boolean b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setTabSet(MutableAttributeSet a,
                             TabSet tabs)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setUnderline(MutableAttributeSet a,
                                boolean b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Size
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object SpaceAbove
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object SpaceBelow
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object StrikeThrough
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Subscript
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Superscript
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object TabSet
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Object Underline
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags