Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.text.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.
The paragraph attributes form the definition of a paragraph to be rendered. All sizes are specified in points (such as found in postscript), a device independent measure.
Inner Class Summary | |
static | StyleConstants.CharacterConstants
This is a typesafe enumeration of the well-known attributes that contribute to a character style. |
static | StyleConstants.ColorConstants
This is a typesafe enumeration of the well-known attributes that contribute to a color. |
static | StyleConstants.FontConstants
This is a typesafe enumeration of the well-known attributes that contribute to a font. |
static | StyleConstants.ParagraphConstants
This is a typesafe enumeration of the well-known attributes that contribute to a paragraph style. |
Field Summary | |
static int | ALIGN_CENTER
A possible value for paragraph alignment. |
static int | ALIGN_JUSTIFIED
A possible value for paragraph alignment. |
static int | ALIGN_LEFT
A possible value for paragraph alignment. |
static int | ALIGN_RIGHT
A possible value for paragraph alignment. |
static java.lang.Object | Alignment
Alignment for the paragraph. |
static java.lang.Object | Background
Name of the background color attribute. |
static java.lang.Object | Bold
Name of the bold attribute. |
static java.lang.Object | ComponentAttribute
Name of the component attribute. |
static java.lang.String | ComponentElementName
Name of elements used to represent components. |
static java.lang.Object | FirstLineIndent
The amount of space to indent the first line of the paragraph. |
static java.lang.Object | FontFamily
Name of the font family. |
static java.lang.Object | FontSize
Name of the font size. |
static java.lang.Object | Foreground
Name of the foreground color attribute. |
static java.lang.Object | IconAttribute
Name of the icon attribute. |
static java.lang.String | IconElementName
Name of elements used to represent icons. |
static java.lang.Object | Italic
Name of the italic attribute. |
static java.lang.Object | LeftIndent
The amount to indent the left side of the paragraph. |
static java.lang.Object | LineSpacing
The amount of space between lines of the paragraph. |
static java.lang.Object | NameAttribute
Attribute name used to name the collection of attributes. |
static java.lang.Object | ResolveAttribute
Attribute name used to identifiy the resolving parent set of attributes, if one is defined. |
static java.lang.Object | RightIndent
The amount to indent the right side of the paragraph. |
static java.lang.Object | SpaceAbove
The amount of space above the paragraph. |
static java.lang.Object | SpaceBelow
The amount of space below the paragraph. |
static java.lang.Object | TabSet
TabSet for the paragraph, type is a TabSet containing TabStops. |
static java.lang.Object | Underline
Name of the underline attribute. |
Method Summary | |
static int | getAlignment(AttributeSet a)
Gets the alignment setting. |
static java.awt.Component | getComponent(AttributeSet a)
Gets the component setting from the attribute list. |
static float | getFirstLineIndent(AttributeSet a)
Gets the first line indent setting. |
static java.lang.String | getFontFamily(AttributeSet a)
Gets the font family setting from the attribute list. |
static int | getFontSize(AttributeSet a)
Gets the font size setting from the attribute list. |
static java.awt.Color | getForeground(AttributeSet a)
Gets the foreground color setting from the attribute list. |
static Icon | getIcon(AttributeSet a)
Gets the icon setting from the attribute list. |
static float | getLeftIndent(AttributeSet a)
Gets the left indent setting. |
static float | getLineSpacing(AttributeSet a)
Gets the line spacing setting. |
static float | getRightIndent(AttributeSet a)
Gets the right indent setting. |
static float | getSpaceAbove(AttributeSet a)
Gets the space above setting. |
static float | getSpaceBelow(AttributeSet a)
Gets the space below setting. |
static TabSet | getTabSet(AttributeSet a)
Gets the TabSet. |
static boolean | isBold(AttributeSet a)
Checks whether the bold attribute is set. |
static boolean | isItalic(AttributeSet a)
Checks whether the italic attribute is set. |
static boolean | isUnderline(AttributeSet a)
Checks whether the underline attribute is set. |
static void | setAlignment(MutableAttributeSet a,
int align)
Sets alignment. |
static void | setBold(MutableAttributeSet a,
boolean b)
Sets the bold attribute. |
static void | setComponent(MutableAttributeSet a,
java.awt.Component c)
Sets the component attribute. |
static void | setFirstLineIndent(MutableAttributeSet a,
float i)
Sets the first line indent. |
static void | setFontFamily(MutableAttributeSet a,
java.lang.String fam)
Sets the font attribute. |
static void | setFontSize(MutableAttributeSet a,
int s)
Sets the font size attribute. |
static void | setForeground(MutableAttributeSet a,
java.awt.Color fg)
Sets the foreground color. |
static void | setIcon(MutableAttributeSet a,
Icon c)
Sets the icon attribute. |
static void | setItalic(MutableAttributeSet a,
boolean b)
Sets the italic attribute. |
static void | setLeftIndent(MutableAttributeSet a,
float i)
Sets left indent. |
static void | setLineSpacing(MutableAttributeSet a,
float i)
Sets line spacing. |
static void | setRightIndent(MutableAttributeSet a,
float i)
Sets right indent. |
static void | setSpaceAbove(MutableAttributeSet a,
float i)
Sets space above. |
static void | setSpaceBelow(MutableAttributeSet a,
float i)
Sets space below. |
static void | setTabSet(MutableAttributeSet a,
TabSet tabs)
Sets the TabSet. |
static void | setUnderline(MutableAttributeSet a,
boolean b)
Sets the underline attribute. |
java.lang.String | toString()
Returns the string representation. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ComponentElementName
public static final java.lang.String IconElementName
public static final java.lang.Object NameAttribute
public static final java.lang.Object ResolveAttribute
public static final java.lang.Object FontFamily
public static final java.lang.Object FontSize
public static final java.lang.Object Bold
public static final java.lang.Object Italic
public static final java.lang.Object Underline
public static final java.lang.Object Foreground
public static final java.lang.Object Background
public static final java.lang.Object ComponentAttribute
public static final java.lang.Object IconAttribute
public static final java.lang.Object FirstLineIndent
public static final java.lang.Object LeftIndent
public static final java.lang.Object RightIndent
public static final java.lang.Object LineSpacing
public static final java.lang.Object SpaceAbove
public static final java.lang.Object SpaceBelow
public static final java.lang.Object Alignment
public static final java.lang.Object TabSet
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
public static final int ALIGN_JUSTIFIED
Method Detail |
public java.lang.String toString()
public static java.awt.Component getComponent(AttributeSet a)
a
- the attribute setpublic static void setComponent(MutableAttributeSet a, java.awt.Component c)
a
- the attribute set
c
- the componentpublic static Icon getIcon(AttributeSet a)
a
- the attribute setpublic static void setIcon(MutableAttributeSet a, Icon c)
a
- the attribute set
c
- the iconpublic static java.lang.String getFontFamily(AttributeSet a)
a
- the attribute setpublic static void setFontFamily(MutableAttributeSet a, java.lang.String fam)
a
- the attribute set
fam
- the fontpublic static int getFontSize(AttributeSet a)
a
- the attribute setpublic static void setFontSize(MutableAttributeSet a, int s)
a
- the attribute set
s
- the font sizepublic static boolean isBold(AttributeSet a)
a
- the attribute setpublic static void setBold(MutableAttributeSet a, boolean b)
a
- the attribute set
b
- specifies true/false for setting the attributepublic static boolean isItalic(AttributeSet a)
a
- the attribute setpublic static void setItalic(MutableAttributeSet a, boolean b)
a
- the attribute set
b
- specifies true/false for setting the attributepublic static boolean isUnderline(AttributeSet a)
a
- the attribute setpublic static void setUnderline(MutableAttributeSet a, boolean b)
a
- the attribute set
b
- specifies true/false for setting the attributepublic static java.awt.Color getForeground(AttributeSet a)
a
- the attribute setpublic static void setForeground(MutableAttributeSet a, java.awt.Color fg)
a
- the attribute set
fg
- the colorpublic static float getFirstLineIndent(AttributeSet a)
a
- the attribute setpublic static void setFirstLineIndent(MutableAttributeSet a, float i)
a
- the attribute set
i
- the valuepublic static float getRightIndent(AttributeSet a)
a
- the attribute setpublic static void setRightIndent(MutableAttributeSet a, float i)
a
- the attribute set
i
- the valuepublic static float getLeftIndent(AttributeSet a)
a
- the attribute setpublic static void setLeftIndent(MutableAttributeSet a, float i)
a
- the attribute set
i
- the valuepublic static float getLineSpacing(AttributeSet a)
a
- the attribute setpublic static void setLineSpacing(MutableAttributeSet a, float i)
a
- the attribute set
i
- the valuepublic static float getSpaceAbove(AttributeSet a)
a
- the attribute setpublic static void setSpaceAbove(MutableAttributeSet a, float i)
a
- the attribute set
i
- the valuepublic static float getSpaceBelow(AttributeSet a)
a
- the attribute setpublic static void setSpaceBelow(MutableAttributeSet a, float i)
a
- the attribute set
i
- the valuepublic static int getAlignment(AttributeSet a)
a
- the attribute setpublic static void setAlignment(MutableAttributeSet a, int align)
a
- the attribute set
align
- the alignment valuepublic static TabSet getTabSet(AttributeSet a)
a
- the attribute setpublic static void setTabSet(MutableAttributeSet a, TabSet tabs)
a
- the attribute set.
tabs
- the TabSetOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |