| Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||
java.lang.Object
|
+----java.awt.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
|
| static | StyleConstants.ColorConstants
|
| static | StyleConstants.FontConstants
|
| static | StyleConstants.ParagraphConstants
|
| Field Summary | |
| static int | ALIGN_CENTER
|
| static int | ALIGN_JUSTIFIED
|
| static int | ALIGN_LEFT
|
| static int | ALIGN_RIGHT
|
| static Object | Alignment
|
| static Object | Background
|
| static Object | Bold
|
| static Object | ComponentAttribute
|
| static String | ComponentElementName
|
| static Object | FirstLineIndent
|
| static Object | FontFamily
|
| static Object | FontSize
|
| static Object | Foreground
|
| static Object | IconAttribute
|
| static String | IconElementName
|
| static Object | Italic
|
| static Object | LeftIndent
|
| static Object | LineSpacing
|
| static Object | NameAttribute
|
| static Object | ResolveAttribute
|
| static Object | RightIndent
|
| static Object | SpaceAbove
|
| static Object | SpaceBelow
|
| static Object | TabSet
|
| static Object | Underline
|
| Method Summary | |
| static int | getAlignment(AttributeSet a)
|
| static Component | getComponent(AttributeSet a)
|
| static float | getFirstLineIndent(AttributeSet a)
|
| static String | getFontFamily(AttributeSet a)
|
| static int | getFontSize(AttributeSet a)
|
| static Color | getForeground(AttributeSet a)
|
| static Icon | getIcon(AttributeSet a)
|
| static float | getLeftIndent(AttributeSet a)
|
| static float | getLineSpacing(AttributeSet a)
|
| static float | getRightIndent(AttributeSet a)
|
| static float | getSpaceAbove(AttributeSet a)
|
| static float | getSpaceBelow(AttributeSet a)
|
| static TabSet | getTabSet(AttributeSet a)
|
| static boolean | isBold(AttributeSet a)
|
| static boolean | isItalic(AttributeSet a)
|
| static boolean | isUnderline(AttributeSet a)
|
| static void | setAlignment(MutableAttributeSet a,
int align)
|
| static void | setBold(MutableAttributeSet a,
boolean b)
|
| static void | setComponent(MutableAttributeSet a,
Component c)
|
| static void | setFirstLineIndent(MutableAttributeSet a,
float i)
|
| static void | setFontFamily(MutableAttributeSet a,
String fam)
|
| static void | setFontSize(MutableAttributeSet a,
int s)
|
| static void | setForeground(MutableAttributeSet a,
Color fg)
|
| static void | setIcon(MutableAttributeSet a,
Icon c)
|
| static void | setItalic(MutableAttributeSet a,
boolean b)
|
| static void | setLeftIndent(MutableAttributeSet a,
float i)
|
| static void | setLineSpacing(MutableAttributeSet a,
float i)
|
| static void | setRightIndent(MutableAttributeSet a,
float i)
|
| static void | setSpaceAbove(MutableAttributeSet a,
float i)
|
| static void | setSpaceBelow(MutableAttributeSet a,
float i)
|
| static void | setTabSet(MutableAttributeSet a,
TabSet tabs)
|
| static void | setUnderline(MutableAttributeSet a,
boolean b)
|
| String | toString()
|
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ComponentElementName
public static final String IconElementName
public static final Object NameAttribute
public static final Object ResolveAttribute
public static final Object FontFamily
public static final Object FontSize
public static final Object Bold
public static final Object Italic
public static final Object Underline
public static final Object Foreground
public static final Object Background
public static final Object ComponentAttribute
public static final Object IconAttribute
public static final Object FirstLineIndent
public static final Object LeftIndent
public static final Object RightIndent
public static final Object LineSpacing
public static final Object SpaceAbove
public static final Object SpaceBelow
public static final Object Alignment
public static final 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 String toString()
public static Component getComponent(AttributeSet a)
a
- the attribute set
public static void setComponent(MutableAttributeSet a,
Component c)
a
- the attribute set
c
- the component
public static Icon getIcon(AttributeSet a)
a
- the attribute set
public static void setIcon(MutableAttributeSet a,
Icon c)
a
- the attribute set
c
- the icon
public static String getFontFamily(AttributeSet a)
a
- the attribute set
public static void setFontFamily(MutableAttributeSet a,
String fam)
a
- the attribute set
fam
- the font
public static int getFontSize(AttributeSet a)
a
- the attribute set
public static void setFontSize(MutableAttributeSet a,
int s)
a
- the attribute set
s
- the font size
public static boolean isBold(AttributeSet a)
a
- the attribute set
public static void setBold(MutableAttributeSet a,
boolean b)
a
- the attribute set
b
- specifies true/false for setting the attribute
public static boolean isItalic(AttributeSet a)
a
- the attribute set
public static void setItalic(MutableAttributeSet a,
boolean b)
a
- the attribute set
b
- specifies true/false for setting the attribute
public static boolean isUnderline(AttributeSet a)
a
- the attribute set
public static void setUnderline(MutableAttributeSet a,
boolean b)
a
- the attribute set
b
- specifies true/false for setting the attribute
public static Color getForeground(AttributeSet a)
a
- the attribute set
public static void setForeground(MutableAttributeSet a,
Color fg)
a
- the attribute set
fg
- the color
public static float getFirstLineIndent(AttributeSet a)
a
- the attribute set
public static void setFirstLineIndent(MutableAttributeSet a,
float i)
a
- the attribute set
i
- the value
public static float getRightIndent(AttributeSet a)
a
- the attribute set
public static void setRightIndent(MutableAttributeSet a,
float i)
a
- the attribute set
i
- the value
public static float getLeftIndent(AttributeSet a)
a
- the attribute set
public static void setLeftIndent(MutableAttributeSet a,
float i)
a
- the attribute set
i
- the value
public static float getLineSpacing(AttributeSet a)
a
- the attribute set
public static void setLineSpacing(MutableAttributeSet a,
float i)
a
- the attribute set
i
- the value
public static float getSpaceAbove(AttributeSet a)
a
- the attribute set
public static void setSpaceAbove(MutableAttributeSet a,
float i)
a
- the attribute set
i
- the value
public static float getSpaceBelow(AttributeSet a)
a
- the attribute set
public static void setSpaceBelow(MutableAttributeSet a,
float i)
a
- the attribute set
i
- the value
public static int getAlignment(AttributeSet a)
a
- the attribute set
public static void setAlignment(MutableAttributeSet a,
int align)
a
- the attribute set
align
- the alignment value
public static TabSet getTabSet(AttributeSet a)
a
- the attribute set
public static void setTabSet(MutableAttributeSet a,
TabSet tabs)
a
- the attribute set.
tabs
- the TabSet
| Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||