当前页面:
在线文档首页 >
JDK 5 Documentation v1.3.1, Java 2 SDK 英文文档
Java 2 Platform SE v1.3.1: Class StyleConstants.ColorConstants - JDK 5 Documentation v1.3.1, Java 2 SDK 英文文档
javax.swing.text
Class StyleConstants.ColorConstants
java.lang.Object
|
+--javax.swing.text.StyleConstants
|
+--javax.swing.text.StyleConstants.ColorConstants
- All Implemented Interfaces:
- AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute
- Enclosing class:
- StyleConstants
- public static class StyleConstants.ColorConstants
- extends StyleConstants
- implements AttributeSet.ColorAttribute, AttributeSet.CharacterAttribute
This is a typesafe enumeration of the well-known
attributes that contribute to a color. These are aliased
by the outer class for general presentation.
Fields inherited from class javax.swing.text.StyleConstants |
ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_LEFT, ALIGN_RIGHT, Alignment, BidiLevel, Bold, ComponentAttribute, ComponentElementName, ComposedTextAttribute, FirstLineIndent, FontFamily, FontSize, IconAttribute, IconElementName, Italic, LeftIndent, LineSpacing, ModelAttribute, NameAttribute, Orientation, ResolveAttribute, RightIndent, SpaceAbove, SpaceBelow, StrikeThrough, Subscript, Superscript, TabSet, Underline |
Methods inherited from class javax.swing.text.StyleConstants |
getAlignment, getBackground, getBidiLevel, getComponent, getFirstLineIndent, getFontFamily, getFontSize, getForeground, getIcon, getLeftIndent, getLineSpacing, getRightIndent, getSpaceAbove, getSpaceBelow, getTabSet, isBold, isItalic, isStrikeThrough, isSubscript, isSuperscript, isUnderline, setAlignment, setBackground, setBidiLevel, setBold, setComponent, setFirstLineIndent, setFontFamily, setFontSize, setForeground, setIcon, setItalic, setLeftIndent, setLineSpacing, setRightIndent, setSpaceAbove, setSpaceBelow, setStrikeThrough, setSubscript, setSuperscript, setTabSet, setUnderline, toString |
Foreground
public static final Object Foreground
- Name of the foreground color attribute.
Background
public static final Object Background
- Name of the background color attribute.
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.