|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.text.StyleConstants
Unsafe:
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.
Field Summary | |
static int |
ALIGN_CENTER
Enabled: A possible value for paragraph alignment. |
static int |
ALIGN_JUSTIFIED
Enabled: A possible value for paragraph alignment. |
static int |
ALIGN_LEFT
Enabled: A possible value for paragraph alignment. |
static int |
ALIGN_RIGHT
Enabled: A possible value for paragraph alignment. |
static Object |
Alignment
Suppressed: Alignment for the paragraph. |
static Object |
Background
Suppressed: Name of the background color attribute. |
static Object |
BidiLevel
Suppressed: Bidirectional level of a character as assigned by the Unicode bidi algorithm. |
static Object |
Bold
Suppressed: Name of the bold attribute. |
static Object |
ComponentAttribute
Suppressed: Name of the component attribute. |
static String |
ComponentElementName
Suppressed: Name of elements used to represent components. |
static Object |
ComposedTextAttribute
Suppressed: Name of the input method composed text attribute. |
static Object |
FirstLineIndent
Suppressed: The amount of space to indent the first line of the paragraph. |
static Object |
FontFamily
Suppressed: Name of the font family. |
static Object |
FontSize
Suppressed: Name of the font size. |
static Object |
Foreground
Suppressed: Name of the foreground color attribute. |
static Object |
IconAttribute
Suppressed: Name of the icon attribute. |
static String |
IconElementName
Suppressed: Name of elements used to represent icons. |
static Object |
Italic
Suppressed: Name of the italic attribute. |
(package private) static Object[] |
keys
|
static Object |
LeftIndent
Suppressed: The amount to indent the left side of the paragraph. |
static Object |
LineSpacing
Suppressed: The amount of space between lines of the paragraph. |
static Object |
ModelAttribute
Suppressed: Attribute used to identify the model for embedded objects that have a model view separation. |
static Object |
NameAttribute
Suppressed: Attribute name used to name the collection of attributes. |
static Object |
Orientation
Suppressed: Orientation for a paragraph. |
private String |
representation
|
static Object |
ResolveAttribute
Suppressed: Attribute name used to identifiy the resolving parent set of attributes, if one is defined. |
static Object |
RightIndent
Suppressed: The amount to indent the right side of the paragraph. |
static Object |
SpaceAbove
Suppressed: The amount of space above the paragraph. |
static Object |
SpaceBelow
Suppressed: The amount of space below the paragraph. |
static Object |
StrikeThrough
Suppressed: Name of the Strikethrough attribute. |
static Object |
Subscript
Suppressed: Name of the Subscript attribute. |
static Object |
Superscript
Suppressed: Name of the Superscript attribute. |
static Object |
TabSet
Suppressed: TabSet for the paragraph, type is a TabSet containing TabStops. |
static Object |
Underline
Suppressed: Name of the underline attribute. |
Constructor Summary | |
(package private) |
StyleConstants(String representation)
|
Method Summary | |
static int |
getAlignment(AttributeSet a)
Suppressed: Gets the alignment setting. |
static Color |
getBackground(AttributeSet a)
Suppressed: Gets the background color setting from the attribute list. |
static int |
getBidiLevel(AttributeSet a)
Suppressed: Gets the BidiLevel setting. |
static Component |
getComponent(AttributeSet a)
Suppressed: Gets the component setting from the attribute list. |
static float |
getFirstLineIndent(AttributeSet a)
Suppressed: Gets the first line indent setting. |
static String |
getFontFamily(AttributeSet a)
Suppressed: Gets the font family setting from the attribute list. |
static int |
getFontSize(AttributeSet a)
Suppressed: Gets the font size setting from the attribute list. |
static Color |
getForeground(AttributeSet a)
Suppressed: Gets the foreground color setting from the attribute list. |
static Icon |
getIcon(AttributeSet a)
Suppressed: Gets the icon setting from the attribute list. |
static float |
getLeftIndent(AttributeSet a)
Suppressed: Gets the left indent setting. |
static float |
getLineSpacing(AttributeSet a)
Suppressed: Gets the line spacing setting. |
static float |
getRightIndent(AttributeSet a)
Suppressed: Gets the right indent setting. |
static float |
getSpaceAbove(AttributeSet a)
Suppressed: Gets the space above setting. |
static float |
getSpaceBelow(AttributeSet a)
Suppressed: Gets the space below setting. |
static TabSet |
getTabSet(AttributeSet a)
Suppressed: Gets the TabSet. |
static boolean |
isBold(AttributeSet a)
Suppressed: Checks whether the bold attribute is set. |
static boolean |
isItalic(AttributeSet a)
Suppressed: Checks whether the italic attribute is set. |
static boolean |
isStrikeThrough(AttributeSet a)
Suppressed: Checks whether the strikethrough attribute is set. |
static boolean |
isSubscript(AttributeSet a)
Suppressed: Checks whether the subscript attribute is set. |
static boolean |
isSuperscript(AttributeSet a)
Suppressed: Checks whether the superscript attribute is set. |
static boolean |
isUnderline(AttributeSet a)
Suppressed: Checks whether the underline attribute is set. |
static void |
setAlignment(MutableAttributeSet a,
int align)
Suppressed: Sets alignment. |
static void |
setBackground(MutableAttributeSet a,
Color fg)
Suppressed: Sets the background color. |
static void |
setBidiLevel(MutableAttributeSet a,
int o)
Suppressed: Sets the BidiLevel. |
static void |
setBold(MutableAttributeSet a,
boolean b)
Suppressed: Sets the bold attribute. |
static void |
setComponent(MutableAttributeSet a,
Component c)
Suppressed: Sets the component attribute. |
static void |
setFirstLineIndent(MutableAttributeSet a,
float i)
Suppressed: Sets the first line indent. |
static void |
setFontFamily(MutableAttributeSet a,
String fam)
Suppressed: Sets the font attribute. |
static void |
setFontSize(MutableAttributeSet a,
int s)
Suppressed: Sets the font size attribute. |
static void |
setForeground(MutableAttributeSet a,
Color fg)
Suppressed: Sets the foreground color. |
static void |
setIcon(MutableAttributeSet a,
Icon c)
Suppressed: Sets the icon attribute. |
static void |
setItalic(MutableAttributeSet a,
boolean b)
Suppressed: Sets the italic attribute. |
static void |
setLeftIndent(MutableAttributeSet a,
float i)
Suppressed: Sets left indent. |
static void |
setLineSpacing(MutableAttributeSet a,
float i)
Suppressed: Sets line spacing. |
static void |
setRightIndent(MutableAttributeSet a,
float i)
Suppressed: Sets right indent. |
static void |
setSpaceAbove(MutableAttributeSet a,
float i)
Suppressed: Sets space above. |
static void |
setSpaceBelow(MutableAttributeSet a,
float i)
Suppressed: Sets space below. |
static void |
setStrikeThrough(MutableAttributeSet a,
boolean b)
Suppressed: Sets the strikethrough attribute. |
static void |
setSubscript(MutableAttributeSet a,
boolean b)
Suppressed: Sets the subscript attribute. |
static void |
setSuperscript(MutableAttributeSet a,
boolean b)
Suppressed: Sets the superscript attribute. |
static void |
setTabSet(MutableAttributeSet a,
TabSet tabs)
Suppressed: Sets the TabSet. |
static void |
setUnderline(MutableAttributeSet a,
boolean b)
Suppressed: Sets the underline attribute. |
String |
toString()
Suppressed: Returns the string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 ModelAttribute
public static final Object BidiLevel
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 StrikeThrough
public static final Object Superscript
public static final Object Subscript
public static final Object Foreground
public static final Object Background
public static final Object ComponentAttribute
public static final Object IconAttribute
public static final Object ComposedTextAttribute
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 Object Orientation
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
public static final int ALIGN_JUSTIFIED
static Object[] keys
private String representation
Constructor Detail |
StyleConstants(String representation)
Method Detail |
public String toString()
toString
in class Object
public static int getBidiLevel(AttributeSet a)
a
- the attribute set
public static void setBidiLevel(MutableAttributeSet a, int o)
a
- the attribute seto
- the bidi level valuepublic static Component getComponent(AttributeSet a)
a
- the attribute set
public static void setComponent(MutableAttributeSet a, Component c)
a
- the attribute setc
- the componentpublic static Icon getIcon(AttributeSet a)
a
- the attribute set
public static void setIcon(MutableAttributeSet a, Icon c)
a
- the attribute setc
- the iconpublic static String getFontFamily(AttributeSet a)
a
- the attribute set
public static void setFontFamily(MutableAttributeSet a, String fam)
a
- the attribute setfam
- the fontpublic static int getFontSize(AttributeSet a)
a
- the attribute set
public static void setFontSize(MutableAttributeSet a, int s)
a
- the attribute sets
- the font sizepublic static boolean isBold(AttributeSet a)
a
- the attribute set
public static void setBold(MutableAttributeSet a, boolean b)
a
- the attribute setb
- specifies true/false for setting the attributepublic static boolean isItalic(AttributeSet a)
a
- the attribute set
public static void setItalic(MutableAttributeSet a, boolean b)
a
- the attribute setb
- specifies true/false for setting the attributepublic static boolean isUnderline(AttributeSet a)
a
- the attribute set
public static boolean isStrikeThrough(AttributeSet a)
a
- the attribute set
public static boolean isSuperscript(AttributeSet a)
a
- the attribute set
public static boolean isSubscript(AttributeSet a)
a
- the attribute set
public static void setUnderline(MutableAttributeSet a, boolean b)
a
- the attribute setb
- specifies true/false for setting the attributepublic static void setStrikeThrough(MutableAttributeSet a, boolean b)
a
- the attribute setb
- specifies true/false for setting the attributepublic static void setSuperscript(MutableAttributeSet a, boolean b)
a
- the attribute setb
- specifies true/false for setting the attributepublic static void setSubscript(MutableAttributeSet a, boolean b)
a
- the attribute setb
- specifies true/false for setting the attributepublic static Color getForeground(AttributeSet a)
a
- the attribute set
public static void setForeground(MutableAttributeSet a, Color fg)
a
- the attribute setfg
- the colorpublic static Color getBackground(AttributeSet a)
a
- the attribute set
public static void setBackground(MutableAttributeSet a, Color fg)
a
- the attribute setfg
- the colorpublic static float getFirstLineIndent(AttributeSet a)
a
- the attribute set
public static void setFirstLineIndent(MutableAttributeSet a, float i)
a
- the attribute seti
- the valuepublic static float getRightIndent(AttributeSet a)
a
- the attribute set
public static void setRightIndent(MutableAttributeSet a, float i)
a
- the attribute seti
- the valuepublic static float getLeftIndent(AttributeSet a)
a
- the attribute set
public static void setLeftIndent(MutableAttributeSet a, float i)
a
- the attribute seti
- the valuepublic static float getLineSpacing(AttributeSet a)
a
- the attribute set
public static void setLineSpacing(MutableAttributeSet a, float i)
a
- the attribute seti
- the valuepublic static float getSpaceAbove(AttributeSet a)
a
- the attribute set
public static void setSpaceAbove(MutableAttributeSet a, float i)
a
- the attribute seti
- the valuepublic static float getSpaceBelow(AttributeSet a)
a
- the attribute set
public static void setSpaceBelow(MutableAttributeSet a, float i)
a
- the attribute seti
- the valuepublic static int getAlignment(AttributeSet a)
a
- the attribute set
StyleConstants.ALIGN_LEFT
if not setpublic static void setAlignment(MutableAttributeSet a, int align)
a
- the attribute setalign
- the alignment valuepublic static TabSet getTabSet(AttributeSet a)
a
- the attribute set
TabSet
public static void setTabSet(MutableAttributeSet a, TabSet tabs)
a
- the attribute set.tabs
- the TabSet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |