java.lang.Object
java.awt.Color
java.awt.SystemColor
- All Implemented Interfaces:
Paint,Transparency,Serializable
public final class SystemColor extends Color implements Serializable
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.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVE_CAPTIONThe array index for theactiveCaptionsystem color.static intACTIVE_CAPTION_BORDERThe array index for theactiveCaptionBordersystem color.static intACTIVE_CAPTION_TEXTThe array index for theactiveCaptionTextsystem color.static SystemColoractiveCaptionThe color rendered for the window-title background of the currently active window.static SystemColoractiveCaptionBorderThe color rendered for the border around the currently active window.static SystemColoractiveCaptionTextThe color rendered for the window-title text of the currently active window.static SystemColorcontrolThe color rendered for the background of control panels and control objects, such as pushbuttons.static intCONTROLThe array index for thecontrolsystem color.static intCONTROL_DK_SHADOWThe array index for thecontrolDkShadowsystem color.static intCONTROL_HIGHLIGHTThe array index for thecontrolHighlightsystem color.static intCONTROL_LT_HIGHLIGHTThe array index for thecontrolLtHighlightsystem color.static intCONTROL_SHADOWThe array index for thecontrolShadowsystem color.static intCONTROL_TEXTThe array index for thecontrolTextsystem color.static SystemColorcontrolDkShadowThe color rendered for dark shadow areas on 3D control objects, such as pushbuttons.static SystemColorcontrolHighlightThe color rendered for light areas of 3D control objects, such as pushbuttons.static SystemColorcontrolLtHighlightThe color rendered for highlight areas of 3D control objects, such as pushbuttons.static SystemColorcontrolShadowThe color rendered for shadow areas of 3D control objects, such as pushbuttons.static SystemColorcontrolTextThe color rendered for the text of control panels and control objects, such as pushbuttons.static SystemColordesktopThe color rendered for the background of the desktop.static intDESKTOPThe array index for thedesktopsystem color.static intINACTIVE_CAPTIONThe array index for theinactiveCaptionsystem color.static intINACTIVE_CAPTION_BORDERThe array index for theinactiveCaptionBordersystem color.static intINACTIVE_CAPTION_TEXTThe array index for theinactiveCaptionTextsystem color.static SystemColorinactiveCaptionThe color rendered for the window-title background of inactive windows.static SystemColorinactiveCaptionBorderThe color rendered for the border around inactive windows.static SystemColorinactiveCaptionTextThe color rendered for the window-title text of inactive windows.static SystemColorinfoThe color rendered for the background of tooltips or spot help.static intINFOThe array index for theinfosystem color.static intINFO_TEXTThe array index for theinfoTextsystem color.static SystemColorinfoTextThe color rendered for the text of tooltips or spot help.static SystemColormenuThe color rendered for the background of menus.static intMENUThe array index for themenusystem color.static intMENU_TEXTThe array index for themenuTextsystem color.static SystemColormenuTextThe color rendered for the text of menus.static intNUM_COLORSThe number of system colors in the array.static SystemColorscrollbarThe color rendered for the background of scrollbars.static intSCROLLBARThe array index for thescrollbarsystem color.static SystemColortextThe color rendered for the background of text control objects, such as textfields and comboboxes.static intTEXTThe array index for thetextsystem color.static intTEXT_HIGHLIGHTThe array index for thetextHighlightsystem color.static intTEXT_HIGHLIGHT_TEXTThe array index for thetextHighlightTextsystem color.static intTEXT_INACTIVE_TEXTThe array index for thetextInactiveTextsystem color.static intTEXT_TEXTThe array index for thetextTextsystem color.static SystemColortextHighlightThe color rendered for the background of selected items, such as in menus, comboboxes, and text.static SystemColortextHighlightTextThe color rendered for the text of selected items, such as in menus, comboboxes, and text.static SystemColortextInactiveTextThe color rendered for the text of inactive items, such as in menus.static SystemColortextTextThe color rendered for the text of text control objects, such as textfields and comboboxes.static SystemColorwindowThe color rendered for the background of interior regions inside windows.static intWINDOWThe array index for thewindowsystem color.static intWINDOW_BORDERThe array index for thewindowBordersystem color.static intWINDOW_TEXTThe array index for thewindowTextsystem color.static SystemColorwindowBorderThe color rendered for the border around interior regions inside windows.static SystemColorwindowTextThe color rendered for text of interior regions inside windows. -
Method Summary
Methods declared in class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
-
Field Details
-
DESKTOP
The array index for thedesktopsystem color.- See Also:
desktop, Constant Field Values
-
ACTIVE_CAPTION
The array index for theactiveCaptionsystem color.- See Also:
activeCaption, Constant Field Values
-
ACTIVE_CAPTION_TEXT
The array index for theactiveCaptionTextsystem color.- See Also:
activeCaptionText, Constant Field Values
-
ACTIVE_CAPTION_BORDER
The array index for theactiveCaptionBordersystem color.- See Also:
activeCaptionBorder, Constant Field Values
-
INACTIVE_CAPTION
The array index for theinactiveCaptionsystem color.- See Also:
inactiveCaption, Constant Field Values
-
INACTIVE_CAPTION_TEXT
The array index for theinactiveCaptionTextsystem color.- See Also:
inactiveCaptionText, Constant Field Values
-
INACTIVE_CAPTION_BORDER
The array index for theinactiveCaptionBordersystem color.- See Also:
inactiveCaptionBorder, Constant Field Values
-
WINDOW
The array index for thewindowsystem color.- See Also:
window, Constant Field Values
-
WINDOW_BORDER
The array index for thewindowBordersystem color.- See Also:
windowBorder, Constant Field Values
-
WINDOW_TEXT
The array index for thewindowTextsystem color.- See Also:
windowText, Constant Field Values
-
MENU
The array index for themenusystem color.- See Also:
menu, Constant Field Values
-
MENU_TEXT
The array index for themenuTextsystem color.- See Also:
menuText, Constant Field Values
-
TEXT
The array index for thetextsystem color.- See Also:
text, Constant Field Values
-
TEXT_TEXT
The array index for thetextTextsystem color.- See Also:
textText, Constant Field Values
-
TEXT_HIGHLIGHT
The array index for thetextHighlightsystem color.- See Also:
textHighlight, Constant Field Values
-
TEXT_HIGHLIGHT_TEXT
The array index for thetextHighlightTextsystem color.- See Also:
textHighlightText, Constant Field Values
-
TEXT_INACTIVE_TEXT
The array index for thetextInactiveTextsystem color.- See Also:
textInactiveText, Constant Field Values
-
CONTROL
The array index for thecontrolsystem color.- See Also:
control, Constant Field Values
-
CONTROL_TEXT
The array index for thecontrolTextsystem color.- See Also:
controlText, Constant Field Values
-
CONTROL_HIGHLIGHT
The array index for thecontrolHighlightsystem color.- See Also:
controlHighlight, Constant Field Values
-
CONTROL_LT_HIGHLIGHT
The array index for thecontrolLtHighlightsystem color.- See Also:
controlLtHighlight, Constant Field Values
-
CONTROL_SHADOW
The array index for thecontrolShadowsystem color.- See Also:
controlShadow, Constant Field Values
-
CONTROL_DK_SHADOW
The array index for thecontrolDkShadowsystem color.- See Also:
controlDkShadow, Constant Field Values
-
SCROLLBAR
The array index for thescrollbarsystem color.- See Also:
scrollbar, Constant Field Values
-
INFO
The array index for theinfosystem color.- See Also:
info, Constant Field Values
-
INFO_TEXT
The array index for theinfoTextsystem color.- See Also:
infoText, Constant Field Values
-
NUM_COLORS
The number of system colors in the array.- See Also:
- Constant Field Values
-
desktop
The color rendered for the background of the desktop. -
activeCaption
The color rendered for the window-title background of the currently active window. -
activeCaptionText
The color rendered for the window-title text of the currently active window. -
activeCaptionBorder
The color rendered for the border around the currently active window. -
inactiveCaption
The color rendered for the window-title background of inactive windows. -
inactiveCaptionText
The color rendered for the window-title text of inactive windows. -
inactiveCaptionBorder
The color rendered for the border around inactive windows. -
window
The color rendered for the background of interior regions inside windows. -
windowBorder
The color rendered for the border around interior regions inside windows. -
windowText
The color rendered for text of interior regions inside windows. -
menu
The color rendered for the background of menus. -
menuText
The color rendered for the text of menus. -
text
The color rendered for the background of text control objects, such as textfields and comboboxes. -
textText
The color rendered for the text of text control objects, such as textfields and comboboxes. -
textHighlight
The color rendered for the background of selected items, such as in menus, comboboxes, and text. -
textHighlightText
The color rendered for the text of selected items, such as in menus, comboboxes, and text. -
textInactiveText
The color rendered for the text of inactive items, such as in menus. -
control
The color rendered for the background of control panels and control objects, such as pushbuttons. -
controlText
The color rendered for the text of control panels and control objects, such as pushbuttons. -
controlHighlight
The color rendered for light areas of 3D control objects, such as pushbuttons. This color is typically derived from thecontrolbackground color to provide a 3D effect. -
controlLtHighlight
The color rendered for highlight areas of 3D control objects, such as pushbuttons. This color is typically derived from thecontrolbackground color to provide a 3D effect. -
controlShadow
The color rendered for shadow areas of 3D control objects, such as pushbuttons. This color is typically derived from thecontrolbackground color to provide a 3D effect. -
controlDkShadow
The color rendered for dark shadow areas on 3D control objects, such as pushbuttons. This color is typically derived from thecontrolbackground color to provide a 3D effect. -
scrollbar
The color rendered for the background of scrollbars. -
info
The color rendered for the background of tooltips or spot help. -
infoText
The color rendered for the text of tooltips or spot help.
-
-
Method Details
-
toString
Returns a string representation of thisColor'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 benull.
-