| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Color
java.awt.SystemColor
public final class SystemColor
A class to encapsulate symbolic colors representing the color of
 native GUI objects on a system.  For systems which support the dynamic
 update of the system colors (when the user changes the colors)
 the actual RGB values of these symbolic colors will also change
 dynamically.  In order to compare the "current" RGB value of a
 SystemColor object with a non-symbolic Color object,
 getRGB should be used rather than equals.
 
Note that the way in which these system colors are applied to GUI objects may vary slightly from platform to platform since GUI objects may be rendered differently on each platform.
 System color values may also be available through the getDesktopProperty
 method on java.awt.Toolkit.
Toolkit.getDesktopProperty(java.lang.String), 
Serialized Form| Field Summary | |
|---|---|
| static int | ACTIVE_CAPTIONThe array index for the activeCaptionsystem color. | 
| static int | ACTIVE_CAPTION_BORDERThe array index for the activeCaptionBordersystem color. | 
| static int | ACTIVE_CAPTION_TEXTThe array index for the activeCaptionTextsystem color. | 
| static SystemColor | activeCaptionThe color rendered for the window-title background of the currently active window. | 
| static SystemColor | activeCaptionBorderThe color rendered for the border around the currently active window. | 
| static SystemColor | activeCaptionTextThe color rendered for the window-title text of the currently active window. | 
| static SystemColor | controlThe color rendered for the background of control panels and control objects, such as pushbuttons. | 
| static int | CONTROLThe array index for the controlsystem color. | 
| static int | CONTROL_DK_SHADOWThe array index for the controlDkShadowsystem color. | 
| static int | CONTROL_HIGHLIGHTThe array index for the controlHighlightsystem color. | 
| static int | CONTROL_LT_HIGHLIGHTThe array index for the controlLtHighlightsystem color. | 
| static int | CONTROL_SHADOWThe array index for the controlShadowsystem color. | 
| static int | CONTROL_TEXTThe array index for the controlTextsystem color. | 
| static SystemColor | controlDkShadowThe color rendered for dark shadow areas on 3D control objects, such as pushbuttons. | 
| static SystemColor | controlHighlightThe color rendered for light areas of 3D control objects, such as pushbuttons. | 
| static SystemColor | controlLtHighlightThe color rendered for highlight areas of 3D control objects, such as pushbuttons. | 
| static SystemColor | controlShadowThe color rendered for shadow areas of 3D control objects, such as pushbuttons. | 
| static SystemColor | controlTextThe color rendered for the text of control panels and control objects, such as pushbuttons. | 
| static SystemColor | desktopThe color rendered for the background of the desktop. | 
| static int | DESKTOPThe array index for the desktopsystem color. | 
| static int | INACTIVE_CAPTIONThe array index for the inactiveCaptionsystem color. | 
| static int | INACTIVE_CAPTION_BORDERThe array index for the inactiveCaptionBordersystem color. | 
| static int | INACTIVE_CAPTION_TEXTThe array index for the inactiveCaptionTextsystem color. | 
| static SystemColor | inactiveCaptionThe color rendered for the window-title background of inactive windows. | 
| static SystemColor | inactiveCaptionBorderThe color rendered for the border around inactive windows. | 
| static SystemColor | inactiveCaptionTextThe color rendered for the window-title text of inactive windows. | 
| static SystemColor | infoThe color rendered for the background of tooltips or spot help. | 
| static int | INFOThe array index for the infosystem color. | 
| static int | INFO_TEXTThe array index for the infoTextsystem color. | 
| static SystemColor | infoTextThe color rendered for the text of tooltips or spot help. | 
| static SystemColor | menuThe color rendered for the background of menus. | 
| static int | MENUThe array index for the menusystem color. | 
| static int | MENU_TEXTThe array index for the menuTextsystem color. | 
| static SystemColor | menuTextThe color rendered for the text of menus. | 
| static int | NUM_COLORSThe number of system colors in the array. | 
| static SystemColor | scrollbarThe color rendered for the background of scrollbars. | 
| static int | SCROLLBARThe array index for the scrollbarsystem color. | 
| static SystemColor | textThe color rendered for the background of text control objects, such as textfields and comboboxes. | 
| static int | TEXTThe array index for the textsystem color. | 
| static int | TEXT_HIGHLIGHTThe array index for the textHighlightsystem color. | 
| static int | TEXT_HIGHLIGHT_TEXTThe array index for the textHighlightTextsystem color. | 
| static int | TEXT_INACTIVE_TEXTThe array index for the textInactiveTextsystem color. | 
| static int | TEXT_TEXTThe array index for the textTextsystem color. | 
| static SystemColor | textHighlightThe color rendered for the background of selected items, such as in menus, comboboxes, and text. | 
| static SystemColor | textHighlightTextThe color rendered for the text of selected items, such as in menus, comboboxes, and text. | 
| static SystemColor | textInactiveTextThe color rendered for the text of inactive items, such as in menus. | 
| static SystemColor | textTextThe color rendered for the text of text control objects, such as textfields and comboboxes. | 
| static SystemColor | windowThe color rendered for the background of interior regions inside windows. | 
| static int | WINDOWThe array index for the windowsystem color. | 
| static int | WINDOW_BORDERThe array index for the windowBordersystem color. | 
| static int | WINDOW_TEXTThe array index for the windowTextsystem color. | 
| static SystemColor | windowBorderThe color rendered for the border around interior regions inside windows. | 
| static SystemColor | windowTextThe color rendered for text of interior regions inside windows. | 
| Fields inherited from class java.awt.Color | 
|---|
| black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW | 
| Fields inherited from interface java.awt.Transparency | 
|---|
| BITMASK, OPAQUE, TRANSLUCENT | 
| Method Summary | |
|---|---|
|  PaintContext | createContext(ColorModel cm,
              Rectangle r,
              Rectangle2D r2d,
              AffineTransform xform,
              RenderingHints hints)Creates and returns a PaintContextused to generate
 a solid color pattern. | 
|  int | getRGB()Gets the "current" RGB value representing the symbolic color. | 
|  String | toString()Returns a string representation of this Color's values. | 
| Methods inherited from class java.awt.Color | 
|---|
| brighter, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int DESKTOP
desktop system color.
desktop, 
Constant Field Valuespublic static final int ACTIVE_CAPTION
activeCaption system color.
activeCaption, 
Constant Field Valuespublic static final int ACTIVE_CAPTION_TEXT
activeCaptionText system color.
activeCaptionText, 
Constant Field Valuespublic static final int ACTIVE_CAPTION_BORDER
activeCaptionBorder system color.
activeCaptionBorder, 
Constant Field Valuespublic static final int INACTIVE_CAPTION
inactiveCaption system color.
inactiveCaption, 
Constant Field Valuespublic static final int INACTIVE_CAPTION_TEXT
inactiveCaptionText system color.
inactiveCaptionText, 
Constant Field Valuespublic static final int INACTIVE_CAPTION_BORDER
inactiveCaptionBorder system color.
inactiveCaptionBorder, 
Constant Field Valuespublic static final int WINDOW
window system color.
window, 
Constant Field Valuespublic static final int WINDOW_BORDER
windowBorder system color.
windowBorder, 
Constant Field Valuespublic static final int WINDOW_TEXT
windowText system color.
windowText, 
Constant Field Valuespublic static final int MENU
menu system color.
menu, 
Constant Field Valuespublic static final int MENU_TEXT
menuText system color.
menuText, 
Constant Field Valuespublic static final int TEXT
text system color.
text, 
Constant Field Valuespublic static final int TEXT_TEXT
textText system color.
textText, 
Constant Field Valuespublic static final int TEXT_HIGHLIGHT
textHighlight system color.
textHighlight, 
Constant Field Valuespublic static final int TEXT_HIGHLIGHT_TEXT
textHighlightText system color.
textHighlightText, 
Constant Field Valuespublic static final int TEXT_INACTIVE_TEXT
textInactiveText system color.
textInactiveText, 
Constant Field Valuespublic static final int CONTROL
control system color.
control, 
Constant Field Valuespublic static final int CONTROL_TEXT
controlText system color.
controlText, 
Constant Field Valuespublic static final int CONTROL_HIGHLIGHT
controlHighlight system color.
controlHighlight, 
Constant Field Valuespublic static final int CONTROL_LT_HIGHLIGHT
controlLtHighlight system color.
controlLtHighlight, 
Constant Field Valuespublic static final int CONTROL_SHADOW
controlShadow system color.
controlShadow, 
Constant Field Valuespublic static final int CONTROL_DK_SHADOW
controlDkShadow system color.
controlDkShadow, 
Constant Field Valuespublic static final int SCROLLBAR
scrollbar system color.
scrollbar, 
Constant Field Valuespublic static final int INFO
info system color.
info, 
Constant Field Valuespublic static final int INFO_TEXT
infoText system color.
infoText, 
Constant Field Valuespublic static final int NUM_COLORS
public static final SystemColor desktop
public static final SystemColor activeCaption
public static final SystemColor activeCaptionText
public static final SystemColor activeCaptionBorder
public static final SystemColor inactiveCaption
public static final SystemColor inactiveCaptionText
public static final SystemColor inactiveCaptionBorder
public static final SystemColor window
public static final SystemColor windowBorder
public static final SystemColor windowText
public static final SystemColor menu
public static final SystemColor menuText
public static final SystemColor text
public static final SystemColor textText
public static final SystemColor textHighlight
public static final SystemColor textHighlightText
public static final SystemColor textInactiveText
public static final SystemColor control
public static final SystemColor controlText
public static final SystemColor controlHighlight
control background color
 to provide a 3D effect.
public static final SystemColor controlLtHighlight
control background color
 to provide a 3D effect.
public static final SystemColor controlShadow
control background color
 to provide a 3D effect.
public static final SystemColor controlDkShadow
control background color
 to provide a 3D effect.
public static final SystemColor scrollbar
public static final SystemColor info
public static final SystemColor infoText
| Method Detail | 
|---|
public int getRGB()
getRGB in class ColorColorModel.ColorModel.getRGBdefault(), 
Color.getBlue(), 
Color.getGreen(), 
Color.getRed()
public PaintContext createContext(ColorModel cm,
                                  Rectangle r,
                                  Rectangle2D r2d,
                                  AffineTransform xform,
                                  RenderingHints hints)
PaintContext used to generate
 a solid color pattern.  This enables a Color object to be used
 as an argument to any method requiring an object implementing
 the Paint interface.
createContext in interface PaintcreateContext in class Colorcm - the specified ColorModelr - the specified Rectangler2d - the specified Rectangle2Dxform - the specified AffineTransformhints - the specified RenderingHints
PaintContext that is used to generate a
                solid color pattern.Paint, 
PaintContext, 
Graphics2D.setPaint(java.awt.Paint)public String toString()
Color's values.
 This method is intended to be used only for debugging purposes,
 and the content and format of the returned string may vary between
 implementations.
 The returned string may be empty but may not be null.
toString in class ColorColor| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.