API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. StyleConstants View Source
Author(s)
Timothy Prinzing
Since
Version
1.37 11/17/05
Serial
Hierarchy
 Object
      StyleConstants
Implements
Subclasses
Description
public class StyleConstants
  A collection of well known or common attribute keys and methods to apply to an AttributeSet or MutableAttributeSet to get/set the properties in a typesafe manner.
See also:   
Constructors
pack-private StyleConstants (String representation)
Methods
Hide/Show inherited methods
publicstatic int getAlignment (AttributeSet a)
  Gets the alignment setting.
publicstatic Color getBackground (AttributeSet a)
  Gets the background color setting from the attribute list.
publicstatic int getBidiLevel (AttributeSet a)
  Gets the BidiLevel setting.
publicstatic Component getComponent (AttributeSet a)
  Gets the component setting from the attribute list.
publicstatic float getFirstLineIndent (AttributeSet a)
  Gets the first line indent setting.
publicstatic String getFontFamily (AttributeSet a)
  Gets the font family setting from the attribute list.
publicstatic int getFontSize (AttributeSet a)
  Gets the font size setting from the attribute list.
publicstatic Color getForeground (AttributeSet a)
  Gets the foreground color setting from the attribute list.
publicstatic Icon getIcon (AttributeSet a)
  Gets the icon setting from the attribute list.
publicstatic float getLeftIndent (AttributeSet a)
  Gets the left indent setting.
publicstatic float getLineSpacing (AttributeSet a)
  Gets the line spacing setting.
publicstatic float getRightIndent (AttributeSet a)
  Gets the right indent setting.
publicstatic float getSpaceAbove (AttributeSet a)
  Gets the space above setting.
publicstatic float getSpaceBelow (AttributeSet a)
  Gets the space below setting.
publicstatic TabSet getTabSet (AttributeSet a)
  Gets the TabSet.
publicstatic boolean isBold (AttributeSet a)
  Checks whether the bold attribute is set.
publicstatic boolean isItalic (AttributeSet a)
  Checks whether the italic attribute is set.
publicstatic boolean isStrikeThrough (AttributeSet a)
  Checks whether the strikethrough attribute is set.
publicstatic boolean isSubscript (AttributeSet a)
  Checks whether the subscript attribute is set.
publicstatic boolean isSuperscript (AttributeSet a)
  Checks whether the superscript attribute is set.
publicstatic boolean isUnderline (AttributeSet a)
  Checks whether the underline attribute is set.
publicstatic void setAlignment (MutableAttributeSet a, int align)
  Sets alignment.
publicstatic void setBackground (MutableAttributeSet a, Color fg)
  Sets the background color.
publicstatic void setBidiLevel (MutableAttributeSet a, int o)
  Sets the BidiLevel.
publicstatic void setBold (MutableAttributeSet a, boolean b)
  Sets the bold attribute.
publicstatic void setComponent (MutableAttributeSet a, Component c)
  Sets the component attribute.
publicstatic void setFirstLineIndent (MutableAttributeSet a, float i)
  Sets the first line indent.
publicstatic void setFontFamily (MutableAttributeSet a, String fam)
  Sets the font attribute.
publicstatic void setFontSize (MutableAttributeSet a, int s)
  Sets the font size attribute.
publicstatic void setForeground (MutableAttributeSet a, Color fg)
  Sets the foreground color.
publicstatic void setIcon (MutableAttributeSet a, Icon c)
  Sets the icon attribute.
publicstatic void setItalic (MutableAttributeSet a, boolean b)
  Sets the italic attribute.
publicstatic void setLeftIndent (MutableAttributeSet a, float i)
  Sets left indent.
publicstatic void setLineSpacing (MutableAttributeSet a, float i)
  Sets line spacing.
publicstatic void setRightIndent (MutableAttributeSet a, float i)
  Sets right indent.
publicstatic void setSpaceAbove (MutableAttributeSet a, float i)
  Sets space above.
publicstatic void setSpaceBelow (MutableAttributeSet a, float i)
  Sets space below.
publicstatic void setStrikeThrough (MutableAttributeSet a, boolean b)
  Sets the strikethrough attribute.
publicstatic void setSubscript (MutableAttributeSet a, boolean b)
  Sets the subscript attribute.
publicstatic void setSuperscript (MutableAttributeSet a, boolean b)
  Sets the superscript attribute.
publicstatic void setTabSet (MutableAttributeSet a, TabSet tabs)
  Sets the TabSet.
publicstatic void setUnderline (MutableAttributeSet a, boolean b)
  Sets the underline attribute.
public String toString ()
  Returns the string representation.
Fields
Hide/Show inherited fields
publicfinalstatic int ALIGN_CENTER = "1"
  A possible value for paragraph alignment.
publicfinalstatic int ALIGN_JUSTIFIED = "3"
  A possible value for paragraph alignment.
publicfinalstatic int ALIGN_LEFT = "0"
  A possible value for paragraph alignment.
publicfinalstatic int ALIGN_RIGHT = "2"
  A possible value for paragraph alignment.
publicfinalstatic Object Alignment
  Alignment for the paragraph.
publicfinalstatic Object Background
Name of the background color attribute.
publicfinalstatic Object BidiLevel
Bidirectional level of a character as assigned by the Unicode bidi algorithm.
publicfinalstatic Object Bold
Name of the bold attribute.
publicfinalstatic Object ComponentAttribute
Name of the component attribute.
publicfinalstatic String ComponentElementName = "component"
Name of elements used to represent components.
publicfinalstatic Object ComposedTextAttribute
  Name of the input method composed text attribute.
publicfinalstatic Object Family
  Name of the font family.
publicfinalstatic Object FirstLineIndent
  The amount of space to indent the first line of the paragraph.
publicfinalstatic Object FontFamily
Name of the font family.
publicfinalstatic Object FontSize
Name of the font size.
publicfinalstatic Object Foreground
Name of the foreground color attribute.
publicfinalstatic Object IconAttribute
Name of the icon attribute.
publicfinalstatic String IconElementName = "icon"
Name of elements used to represent icons.
publicfinalstatic Object Italic
Name of the italic attribute.
pack-privatestatic Object keys
publicfinalstatic Object LeftIndent
  The amount to indent the left side of the paragraph.
publicfinalstatic Object LineSpacing
  The amount of space between lines of the paragraph.
publicfinalstatic Object ModelAttribute
Attribute used to identify the model for embedded objects that have a model view separation.
publicfinalstatic Object NameAttribute
Attribute name used to name the collection of attributes.
publicfinalstatic Object Orientation
Orientation for a paragraph.
publicfinalstatic Object ResolveAttribute
Attribute name used to identifiy the resolving parent set of attributes, if one is defined.
publicfinalstatic Object RightIndent
  The amount to indent the right side of the paragraph.
publicfinalstatic Object Size
  Name of the font size.
publicfinalstatic Object SpaceAbove
  The amount of space above the paragraph.
publicfinalstatic Object SpaceBelow
  The amount of space below the paragraph.
publicfinalstatic Object StrikeThrough
Name of the Strikethrough attribute.
publicfinalstatic Object Subscript
Name of the Subscript attribute.
publicfinalstatic Object Superscript
Name of the Superscript attribute.
publicfinalstatic Object TabSet
TabSet for the paragraph, type is a TabSet containing TabStops.
publicfinalstatic Object Underline
Name of the underline attribute.
Nested Classes
  StyleConstants.ParagraphConstants
This is a typesafe enumeration of the well-known attributes that contribute to a paragraph style.
  StyleConstants.CharacterConstants
This is a typesafe enumeration of the well-known attributes that contribute to a character style.
  StyleConstants.ColorConstants
This is a typesafe enumeration of the well-known attributes that contribute to a color.
  StyleConstants.FontConstants
This is a typesafe enumeration of the well-known attributes that contribute to a font.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar