Class SystemColor
java.lang.Object
java.awt.Color
java.awt.SystemColor
- All Implemented Interfaces:
Paint
,Transparency
,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
.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The array index for theactiveCaption
system color.static final int
The array index for theactiveCaptionBorder
system color.static final int
The array index for theactiveCaptionText
system color.static final SystemColor
The color rendered for the window-title background of the currently active window.static final SystemColor
The color rendered for the border around the currently active window.static final SystemColor
The color rendered for the window-title text of the currently active window.static final SystemColor
The color rendered for the background of control panels and control objects, such as pushbuttons.static final int
The array index for thecontrol
system color.static final int
The array index for thecontrolDkShadow
system color.static final int
The array index for thecontrolHighlight
system color.static final int
The array index for thecontrolLtHighlight
system color.static final int
The array index for thecontrolShadow
system color.static final int
The array index for thecontrolText
system color.static final SystemColor
The color rendered for dark shadow areas on 3D control objects, such as pushbuttons.static final SystemColor
The color rendered for light areas of 3D control objects, such as pushbuttons.static final SystemColor
The color rendered for highlight areas of 3D control objects, such as pushbuttons.static final SystemColor
The color rendered for shadow areas of 3D control objects, such as pushbuttons.static final SystemColor
The color rendered for the text of control panels and control objects, such as pushbuttons.static final SystemColor
The color rendered for the background of the desktop.static final int
The array index for thedesktop
system color.static final int
The array index for theinactiveCaption
system color.static final int
The array index for theinactiveCaptionBorder
system color.static final int
The array index for theinactiveCaptionText
system color.static final SystemColor
The color rendered for the window-title background of inactive windows.static final SystemColor
The color rendered for the border around inactive windows.static final SystemColor
The color rendered for the window-title text of inactive windows.static final SystemColor
The color rendered for the background of tooltips or spot help.static final int
The array index for theinfo
system color.static final int
The array index for theinfoText
system color.static final SystemColor
The color rendered for the text of tooltips or spot help.static final SystemColor
The color rendered for the background of menus.static final int
The array index for themenu
system color.static final int
The array index for themenuText
system color.static final SystemColor
The color rendered for the text of menus.static final int
The number of system colors in the array.static final SystemColor
The color rendered for the background of scrollbars.static final int
The array index for thescrollbar
system color.static final SystemColor
The color rendered for the background of text control objects, such as textfields and comboboxes.static final int
The array index for thetext
system color.static final int
The array index for thetextHighlight
system color.static final int
The array index for thetextHighlightText
system color.static final int
The array index for thetextInactiveText
system color.static final int
The array index for thetextText
system color.static final SystemColor
The color rendered for the background of selected items, such as in menus, comboboxes, and text.static final SystemColor
The color rendered for the text of selected items, such as in menus, comboboxes, and text.static final SystemColor
The color rendered for the text of inactive items, such as in menus.static final SystemColor
The color rendered for the text of text control objects, such as textfields and comboboxes.static final SystemColor
The color rendered for the background of interior regions inside windows.static final int
The array index for thewindow
system color.static final int
The array index for thewindowBorder
system color.static final int
The array index for thewindowText
system color.static final SystemColor
The color rendered for the border around interior regions inside windows.static final SystemColor
The 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
Methods inherited from 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
-
ACTIVE_CAPTION
The array index for theactiveCaption
system color.- See Also:
-
ACTIVE_CAPTION_TEXT
The array index for theactiveCaptionText
system color.- See Also:
-
ACTIVE_CAPTION_BORDER
The array index for theactiveCaptionBorder
system color.- See Also:
-
INACTIVE_CAPTION
The array index for theinactiveCaption
system color.- See Also:
-
INACTIVE_CAPTION_TEXT
The array index for theinactiveCaptionText
system color.- See Also:
-
INACTIVE_CAPTION_BORDER
The array index for theinactiveCaptionBorder
system color.- See Also:
-
WINDOW
-
WINDOW_BORDER
The array index for thewindowBorder
system color.- See Also:
-
WINDOW_TEXT
The array index for thewindowText
system color.- See Also:
-
MENU
-
MENU_TEXT
-
TEXT
-
TEXT_TEXT
-
TEXT_HIGHLIGHT
The array index for thetextHighlight
system color.- See Also:
-
TEXT_HIGHLIGHT_TEXT
The array index for thetextHighlightText
system color.- See Also:
-
TEXT_INACTIVE_TEXT
The array index for thetextInactiveText
system color.- See Also:
-
CONTROL
-
CONTROL_TEXT
The array index for thecontrolText
system color.- See Also:
-
CONTROL_HIGHLIGHT
The array index for thecontrolHighlight
system color.- See Also:
-
CONTROL_LT_HIGHLIGHT
The array index for thecontrolLtHighlight
system color.- See Also:
-
CONTROL_SHADOW
The array index for thecontrolShadow
system color.- See Also:
-
CONTROL_DK_SHADOW
The array index for thecontrolDkShadow
system color.- See Also:
-
SCROLLBAR
-
INFO
-
INFO_TEXT
-
NUM_COLORS
-
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. -
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 thecontrol
background 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 thecontrol
background 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 thecontrol
background 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 thecontrol
background 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
.
-