java.awt
Class SystemColor

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.Color sample code for java.awt.Color definition code for java.awt.Color 
      extended by java.awt.SystemColor
All Implemented Interfaces:
Paint sample code for java.awt.Paint definition code for java.awt.Paint , Transparency sample code for java.awt.Transparency definition code for java.awt.Transparency , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public final class SystemColor
extends Color sample code for java.awt.Color definition code for java.awt.Color
implements Serializable sample code for java.io.Serializable definition code for java.io.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:
Toolkit.getDesktopProperty(java.lang.String) sample code for java.awt.Toolkit.getDesktopProperty(java.lang.String) definition code for java.awt.Toolkit.getDesktopProperty(java.lang.String) , Serialized Form

Field Summary
static int ACTIVE_CAPTION sample code for java.awt.SystemColor.ACTIVE_CAPTION definition code for java.awt.SystemColor.ACTIVE_CAPTION
          The array index for the activeCaption system color.
static int ACTIVE_CAPTION_BORDER sample code for java.awt.SystemColor.ACTIVE_CAPTION_BORDER definition code for java.awt.SystemColor.ACTIVE_CAPTION_BORDER
          The array index for the activeCaptionBorder system color.
static int ACTIVE_CAPTION_TEXT sample code for java.awt.SystemColor.ACTIVE_CAPTION_TEXT definition code for java.awt.SystemColor.ACTIVE_CAPTION_TEXT
          The array index for the activeCaptionText system color.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor activeCaption sample code for java.awt.SystemColor.activeCaption definition code for java.awt.SystemColor.activeCaption
          The color rendered for the window-title background of the currently active window.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor activeCaptionBorder sample code for java.awt.SystemColor.activeCaptionBorder definition code for java.awt.SystemColor.activeCaptionBorder
          The color rendered for the border around the currently active window.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor activeCaptionText sample code for java.awt.SystemColor.activeCaptionText definition code for java.awt.SystemColor.activeCaptionText
          The color rendered for the window-title text of the currently active window.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor control sample code for java.awt.SystemColor.control definition code for java.awt.SystemColor.control
          The color rendered for the background of control panels and control objects, such as pushbuttons.
static int CONTROL sample code for java.awt.SystemColor.CONTROL definition code for java.awt.SystemColor.CONTROL
          The array index for the control system color.
static int CONTROL_DK_SHADOW sample code for java.awt.SystemColor.CONTROL_DK_SHADOW definition code for java.awt.SystemColor.CONTROL_DK_SHADOW
          The array index for the controlDkShadow system color.
static int CONTROL_HIGHLIGHT sample code for java.awt.SystemColor.CONTROL_HIGHLIGHT definition code for java.awt.SystemColor.CONTROL_HIGHLIGHT
          The array index for the controlHighlight system color.
static int CONTROL_LT_HIGHLIGHT sample code for java.awt.SystemColor.CONTROL_LT_HIGHLIGHT definition code for java.awt.SystemColor.CONTROL_LT_HIGHLIGHT
          The array index for the controlLtHighlight system color.
static int CONTROL_SHADOW sample code for java.awt.SystemColor.CONTROL_SHADOW definition code for java.awt.SystemColor.CONTROL_SHADOW
          The array index for the controlShadow system color.
static int CONTROL_TEXT sample code for java.awt.SystemColor.CONTROL_TEXT definition code for java.awt.SystemColor.CONTROL_TEXT
          The array index for the controlText system color.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor controlDkShadow sample code for java.awt.SystemColor.controlDkShadow definition code for java.awt.SystemColor.controlDkShadow
          The color rendered for dark shadow areas on 3D control objects, such as pushbuttons.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor controlHighlight sample code for java.awt.SystemColor.controlHighlight definition code for java.awt.SystemColor.controlHighlight
          The color rendered for light areas of 3D control objects, such as pushbuttons.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor controlLtHighlight sample code for java.awt.SystemColor.controlLtHighlight definition code for java.awt.SystemColor.controlLtHighlight
          The color rendered for highlight areas of 3D control objects, such as pushbuttons.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor controlShadow sample code for java.awt.SystemColor.controlShadow definition code for java.awt.SystemColor.controlShadow
          The color rendered for shadow areas of 3D control objects, such as pushbuttons.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor controlText sample code for java.awt.SystemColor.controlText definition code for java.awt.SystemColor.controlText
          The color rendered for the text of control panels and control objects, such as pushbuttons.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor desktop sample code for java.awt.SystemColor.desktop definition code for java.awt.SystemColor.desktop
          The color rendered for the background of the desktop.
static int DESKTOP sample code for java.awt.SystemColor.DESKTOP definition code for java.awt.SystemColor.DESKTOP
          The array index for the desktop system color.
static int INACTIVE_CAPTION sample code for java.awt.SystemColor.INACTIVE_CAPTION definition code for java.awt.SystemColor.INACTIVE_CAPTION
          The array index for the inactiveCaption system color.
static int INACTIVE_CAPTION_BORDER sample code for java.awt.SystemColor.INACTIVE_CAPTION_BORDER definition code for java.awt.SystemColor.INACTIVE_CAPTION_BORDER
          The array index for the inactiveCaptionBorder system color.
static int INACTIVE_CAPTION_TEXT sample code for java.awt.SystemColor.INACTIVE_CAPTION_TEXT definition code for java.awt.SystemColor.INACTIVE_CAPTION_TEXT
          The array index for the inactiveCaptionText system color.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor inactiveCaption sample code for java.awt.SystemColor.inactiveCaption definition code for java.awt.SystemColor.inactiveCaption
          The color rendered for the window-title background of inactive windows.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor inactiveCaptionBorder sample code for java.awt.SystemColor.inactiveCaptionBorder definition code for java.awt.SystemColor.inactiveCaptionBorder
          The color rendered for the border around inactive windows.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor inactiveCaptionText sample code for java.awt.SystemColor.inactiveCaptionText definition code for java.awt.SystemColor.inactiveCaptionText
          The color rendered for the window-title text of inactive windows.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor info sample code for java.awt.SystemColor.info definition code for java.awt.SystemColor.info
          The color rendered for the background of tooltips or spot help.
static int INFO sample code for java.awt.SystemColor.INFO definition code for java.awt.SystemColor.INFO
          The array index for the info system color.
static int INFO_TEXT sample code for java.awt.SystemColor.INFO_TEXT definition code for java.awt.SystemColor.INFO_TEXT
          The array index for the infoText system color.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor infoText sample code for java.awt.SystemColor.infoText definition code for java.awt.SystemColor.infoText
          The color rendered for the text of tooltips or spot help.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor menu sample code for java.awt.SystemColor.menu definition code for java.awt.SystemColor.menu
          The color rendered for the background of menus.
static int MENU sample code for java.awt.SystemColor.MENU definition code for java.awt.SystemColor.MENU
          The array index for the menu system color.
static int MENU_TEXT sample code for java.awt.SystemColor.MENU_TEXT definition code for java.awt.SystemColor.MENU_TEXT
          The array index for the menuText system color.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor menuText sample code for java.awt.SystemColor.menuText definition code for java.awt.SystemColor.menuText
          The color rendered for the text of menus.
static int NUM_COLORS sample code for java.awt.SystemColor.NUM_COLORS definition code for java.awt.SystemColor.NUM_COLORS
          The number of system colors in the array.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor scrollbar sample code for java.awt.SystemColor.scrollbar definition code for java.awt.SystemColor.scrollbar
          The color rendered for the background of scrollbars.
static int SCROLLBAR sample code for java.awt.SystemColor.SCROLLBAR definition code for java.awt.SystemColor.SCROLLBAR
          The array index for the scrollbar system color.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor text sample code for java.awt.SystemColor.text definition code for java.awt.SystemColor.text
          The color rendered for the background of text control objects, such as textfields and comboboxes.
static int TEXT sample code for java.awt.SystemColor.TEXT definition code for java.awt.SystemColor.TEXT
          The array index for the text system color.
static int TEXT_HIGHLIGHT sample code for java.awt.SystemColor.TEXT_HIGHLIGHT definition code for java.awt.SystemColor.TEXT_HIGHLIGHT
          The array index for the textHighlight system color.
static int TEXT_HIGHLIGHT_TEXT sample code for java.awt.SystemColor.TEXT_HIGHLIGHT_TEXT definition code for java.awt.SystemColor.TEXT_HIGHLIGHT_TEXT
          The array index for the textHighlightText system color.
static int TEXT_INACTIVE_TEXT sample code for java.awt.SystemColor.TEXT_INACTIVE_TEXT definition code for java.awt.SystemColor.TEXT_INACTIVE_TEXT
          The array index for the textInactiveText system color.
static int TEXT_TEXT sample code for java.awt.SystemColor.TEXT_TEXT definition code for java.awt.SystemColor.TEXT_TEXT
          The array index for the textText system color.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor textHighlight sample code for java.awt.SystemColor.textHighlight definition code for java.awt.SystemColor.textHighlight
          The color rendered for the background of selected items, such as in menus, comboboxes, and text.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor textHighlightText sample code for java.awt.SystemColor.textHighlightText definition code for java.awt.SystemColor.textHighlightText
          The color rendered for the text of selected items, such as in menus, comboboxes, and text.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor textInactiveText sample code for java.awt.SystemColor.textInactiveText definition code for java.awt.SystemColor.textInactiveText
          The color rendered for the text of inactive items, such as in menus.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor textText sample code for java.awt.SystemColor.textText definition code for java.awt.SystemColor.textText
          The color rendered for the text of text control objects, such as textfields and comboboxes.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor window sample code for java.awt.SystemColor.window definition code for java.awt.SystemColor.window
          The color rendered for the background of interior regions inside windows.
static int WINDOW sample code for java.awt.SystemColor.WINDOW definition code for java.awt.SystemColor.WINDOW
          The array index for the window system color.
static int WINDOW_BORDER sample code for java.awt.SystemColor.WINDOW_BORDER definition code for java.awt.SystemColor.WINDOW_BORDER
          The array index for the windowBorder system color.
static int WINDOW_TEXT sample code for java.awt.SystemColor.WINDOW_TEXT definition code for java.awt.SystemColor.WINDOW_TEXT
          The array index for the windowText system color.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor windowBorder sample code for java.awt.SystemColor.windowBorder definition code for java.awt.SystemColor.windowBorder
          The color rendered for the border around interior regions inside windows.
static SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor windowText sample code for java.awt.SystemColor.windowText definition code for java.awt.SystemColor.windowText
          The color rendered for text of interior regions inside windows.
 
Fields inherited from class java.awt.Color sample code for java.awt.Color definition code for java.awt.Color
black sample code for java.awt.Color.black definition code for java.awt.Color.black , BLACK sample code for java.awt.Color.BLACK definition code for java.awt.Color.BLACK , blue sample code for java.awt.Color.blue definition code for java.awt.Color.blue , BLUE sample code for java.awt.Color.BLUE definition code for java.awt.Color.BLUE , cyan sample code for java.awt.Color.cyan definition code for java.awt.Color.cyan , CYAN sample code for java.awt.Color.CYAN definition code for java.awt.Color.CYAN , DARK_GRAY sample code for java.awt.Color.DARK_GRAY definition code for java.awt.Color.DARK_GRAY , darkGray sample code for java.awt.Color.darkGray definition code for java.awt.Color.darkGray , gray sample code for java.awt.Color.gray definition code for java.awt.Color.gray , GRAY sample code for java.awt.Color.GRAY definition code for java.awt.Color.GRAY , green sample code for java.awt.Color.green definition code for java.awt.Color.green , GREEN sample code for java.awt.Color.GREEN definition code for java.awt.Color.GREEN , LIGHT_GRAY sample code for java.awt.Color.LIGHT_GRAY definition code for java.awt.Color.LIGHT_GRAY , lightGray sample code for java.awt.Color.lightGray definition code for java.awt.Color.lightGray , magenta sample code for java.awt.Color.magenta definition code for java.awt.Color.magenta , MAGENTA sample code for java.awt.Color.MAGENTA definition code for java.awt.Color.MAGENTA , orange sample code for java.awt.Color.orange definition code for java.awt.Color.orange , ORANGE sample code for java.awt.Color.ORANGE definition code for java.awt.Color.ORANGE , pink sample code for java.awt.Color.pink definition code for java.awt.Color.pink , PINK sample code for java.awt.Color.PINK definition code for java.awt.Color.PINK , red sample code for java.awt.Color.red definition code for java.awt.Color.red , RED sample code for java.awt.Color.RED definition code for java.awt.Color.RED , white sample code for java.awt.Color.white definition code for java.awt.Color.white , WHITE sample code for java.awt.Color.WHITE definition code for java.awt.Color.WHITE , yellow sample code for java.awt.Color.yellow definition code for java.awt.Color.yellow , YELLOW sample code for java.awt.Color.YELLOW definition code for java.awt.Color.YELLOW
 
Fields inherited from interface java.awt.Transparency sample code for java.awt.Transparency definition code for java.awt.Transparency
BITMASK sample code for java.awt.Transparency.BITMASK definition code for java.awt.Transparency.BITMASK , OPAQUE sample code for java.awt.Transparency.OPAQUE definition code for java.awt.Transparency.OPAQUE , TRANSLUCENT sample code for java.awt.Transparency.TRANSLUCENT definition code for java.awt.Transparency.TRANSLUCENT
 
Method Summary
 PaintContext sample code for java.awt.PaintContext definition code for java.awt.PaintContext createContext sample code for java.awt.SystemColor.createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints) definition code for java.awt.SystemColor.createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints) (ColorModel sample code for java.awt.image.ColorModel definition code for java.awt.image.ColorModel  cm, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  r, Rectangle2D sample code for java.awt.geom.Rectangle2D definition code for java.awt.geom.Rectangle2D  r2d, AffineTransform sample code for java.awt.geom.AffineTransform definition code for java.awt.geom.AffineTransform  xform, RenderingHints sample code for java.awt.RenderingHints definition code for java.awt.RenderingHints  hints)
          Creates and returns a PaintContext used to generate a solid color pattern.
 int getRGB sample code for java.awt.SystemColor.getRGB() definition code for java.awt.SystemColor.getRGB() ()
          Gets the "current" RGB value representing the symbolic color.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.awt.SystemColor.toString() definition code for java.awt.SystemColor.toString() ()
          Returns a string representation of this Color's values.
 
Methods inherited from class java.awt.Color sample code for java.awt.Color definition code for java.awt.Color
brighter sample code for java.awt.Color.brighter() definition code for java.awt.Color.brighter() , darker sample code for java.awt.Color.darker() definition code for java.awt.Color.darker() , decode sample code for java.awt.Color.decode(java.lang.String) definition code for java.awt.Color.decode(java.lang.String) , equals sample code for java.awt.Color.equals(java.lang.Object) definition code for java.awt.Color.equals(java.lang.Object) , getAlpha sample code for java.awt.Color.getAlpha() definition code for java.awt.Color.getAlpha() , getBlue sample code for java.awt.Color.getBlue() definition code for java.awt.Color.getBlue() , getColor sample code for java.awt.Color.getColor(java.lang.String) definition code for java.awt.Color.getColor(java.lang.String) , getColor sample code for java.awt.Color.getColor(java.lang.String, java.awt.Color) definition code for java.awt.Color.getColor(java.lang.String, java.awt.Color) , getColor sample code for java.awt.Color.getColor(java.lang.String, int) definition code for java.awt.Color.getColor(java.lang.String, int) , getColorComponents sample code for java.awt.Color.getColorComponents(java.awt.color.ColorSpace, float[]) definition code for java.awt.Color.getColorComponents(java.awt.color.ColorSpace, float[]) , getColorComponents sample code for java.awt.Color.getColorComponents(float[]) definition code for java.awt.Color.getColorComponents(float[]) , getColorSpace sample code for java.awt.Color.getColorSpace() definition code for java.awt.Color.getColorSpace() , getComponents sample code for java.awt.Color.getComponents(java.awt.color.ColorSpace, float[]) definition code for java.awt.Color.getComponents(java.awt.color.ColorSpace, float[]) , getComponents sample code for java.awt.Color.getComponents(float[]) definition code for java.awt.Color.getComponents(float[]) , getGreen sample code for java.awt.Color.getGreen() definition code for java.awt.Color.getGreen() , getHSBColor sample code for java.awt.Color.getHSBColor(float, float, float) definition code for java.awt.Color.getHSBColor(float, float, float) , getRed sample code for java.awt.Color.getRed() definition code for java.awt.Color.getRed() , getRGBColorComponents sample code for java.awt.Color.getRGBColorComponents(float[]) definition code for java.awt.Color.getRGBColorComponents(float[]) , getRGBComponents sample code for java.awt.Color.getRGBComponents(float[]) definition code for java.awt.Color.getRGBComponents(float[]) , getTransparency sample code for java.awt.Color.getTransparency() definition code for java.awt.Color.getTransparency() , hashCode sample code for java.awt.Color.hashCode() definition code for java.awt.Color.hashCode() , HSBtoRGB sample code for java.awt.Color.HSBtoRGB(float, float, float) definition code for java.awt.Color.HSBtoRGB(float, float, float) , RGBtoHSB sample code for java.awt.Color.RGBtoHSB(int, int, int, float[]) definition code for java.awt.Color.RGBtoHSB(int, int, int, float[])
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

DESKTOP sample code for java.awt.SystemColor.DESKTOP

public static final int DESKTOP
The array index for the desktop system color.

See Also:
desktop sample code for java.awt.SystemColor.desktop definition code for java.awt.SystemColor.desktop , Constant Field Values

ACTIVE_CAPTION sample code for java.awt.SystemColor.ACTIVE_CAPTION

public static final int ACTIVE_CAPTION
The array index for the activeCaption system color.

See Also:
activeCaption sample code for java.awt.SystemColor.activeCaption definition code for java.awt.SystemColor.activeCaption , Constant Field Values

ACTIVE_CAPTION_TEXT sample code for java.awt.SystemColor.ACTIVE_CAPTION_TEXT

public static final int ACTIVE_CAPTION_TEXT
The array index for the activeCaptionText system color.

See Also:
activeCaptionText sample code for java.awt.SystemColor.activeCaptionText definition code for java.awt.SystemColor.activeCaptionText , Constant Field Values

ACTIVE_CAPTION_BORDER sample code for java.awt.SystemColor.ACTIVE_CAPTION_BORDER

public static final int ACTIVE_CAPTION_BORDER
The array index for the activeCaptionBorder system color.

See Also:
activeCaptionBorder sample code for java.awt.SystemColor.activeCaptionBorder definition code for java.awt.SystemColor.activeCaptionBorder , Constant Field Values

INACTIVE_CAPTION sample code for java.awt.SystemColor.INACTIVE_CAPTION

public static final int INACTIVE_CAPTION
The array index for the inactiveCaption system color.

See Also:
inactiveCaption sample code for java.awt.SystemColor.inactiveCaption definition code for java.awt.SystemColor.inactiveCaption , Constant Field Values

INACTIVE_CAPTION_TEXT sample code for java.awt.SystemColor.INACTIVE_CAPTION_TEXT

public static final int INACTIVE_CAPTION_TEXT
The array index for the inactiveCaptionText system color.

See Also:
inactiveCaptionText sample code for java.awt.SystemColor.inactiveCaptionText definition code for java.awt.SystemColor.inactiveCaptionText , Constant Field Values

INACTIVE_CAPTION_BORDER sample code for java.awt.SystemColor.INACTIVE_CAPTION_BORDER

public static final int INACTIVE_CAPTION_BORDER
The array index for the inactiveCaptionBorder system color.

See Also:
inactiveCaptionBorder sample code for java.awt.SystemColor.inactiveCaptionBorder definition code for java.awt.SystemColor.inactiveCaptionBorder , Constant Field Values

WINDOW sample code for java.awt.SystemColor.WINDOW

public static final int WINDOW
The array index for the window system color.

See Also:
window sample code for java.awt.SystemColor.window definition code for java.awt.SystemColor.window , Constant Field Values

WINDOW_BORDER sample code for java.awt.SystemColor.WINDOW_BORDER

public static final int WINDOW_BORDER
The array index for the windowBorder system color.

See Also:
windowBorder sample code for java.awt.SystemColor.windowBorder definition code for java.awt.SystemColor.windowBorder , Constant Field Values

WINDOW_TEXT sample code for java.awt.SystemColor.WINDOW_TEXT

public static final int WINDOW_TEXT
The array index for the windowText system color.

See Also:
windowText sample code for java.awt.SystemColor.windowText definition code for java.awt.SystemColor.windowText , Constant Field Values

MENU sample code for java.awt.SystemColor.MENU

public static final int MENU
The array index for the menu system color.

See Also:
menu sample code for java.awt.SystemColor.menu definition code for java.awt.SystemColor.menu , Constant Field Values

MENU_TEXT sample code for java.awt.SystemColor.MENU_TEXT

public static final int MENU_TEXT
The array index for the menuText system color.

See Also:
menuText sample code for java.awt.SystemColor.menuText definition code for java.awt.SystemColor.menuText , Constant Field Values

TEXT sample code for java.awt.SystemColor.TEXT

public static final int TEXT
The array index for the text system color.

See Also:
text sample code for java.awt.SystemColor.text definition code for java.awt.SystemColor.text , Constant Field Values

TEXT_TEXT sample code for java.awt.SystemColor.TEXT_TEXT

public static final int TEXT_TEXT
The array index for the textText system color.

See Also:
textText sample code for java.awt.SystemColor.textText definition code for java.awt.SystemColor.textText , Constant Field Values

TEXT_HIGHLIGHT sample code for java.awt.SystemColor.TEXT_HIGHLIGHT

public static final int TEXT_HIGHLIGHT
The array index for the textHighlight system color.

See Also:
textHighlight sample code for java.awt.SystemColor.textHighlight definition code for java.awt.SystemColor.textHighlight , Constant Field Values

TEXT_HIGHLIGHT_TEXT sample code for java.awt.SystemColor.TEXT_HIGHLIGHT_TEXT

public static final int TEXT_HIGHLIGHT_TEXT
The array index for the textHighlightText system color.

See Also:
textHighlightText sample code for java.awt.SystemColor.textHighlightText definition code for java.awt.SystemColor.textHighlightText , Constant Field Values

TEXT_INACTIVE_TEXT sample code for java.awt.SystemColor.TEXT_INACTIVE_TEXT

public static final int TEXT_INACTIVE_TEXT
The array index for the textInactiveText system color.

See Also:
textInactiveText sample code for java.awt.SystemColor.textInactiveText definition code for java.awt.SystemColor.textInactiveText , Constant Field Values

CONTROL sample code for java.awt.SystemColor.CONTROL

public static final int CONTROL
The array index for the control system color.

See Also:
control sample code for java.awt.SystemColor.control definition code for java.awt.SystemColor.control , Constant Field Values

CONTROL_TEXT sample code for java.awt.SystemColor.CONTROL_TEXT

public static final int CONTROL_TEXT
The array index for the controlText system color.

See Also:
controlText sample code for java.awt.SystemColor.controlText definition code for java.awt.SystemColor.controlText , Constant Field Values

CONTROL_HIGHLIGHT sample code for java.awt.SystemColor.CONTROL_HIGHLIGHT

public static final int CONTROL_HIGHLIGHT
The array index for the controlHighlight system color.

See Also:
controlHighlight sample code for java.awt.SystemColor.controlHighlight definition code for java.awt.SystemColor.controlHighlight , Constant Field Values

CONTROL_LT_HIGHLIGHT sample code for java.awt.SystemColor.CONTROL_LT_HIGHLIGHT

public static final int CONTROL_LT_HIGHLIGHT
The array index for the controlLtHighlight system color.

See Also:
controlLtHighlight sample code for java.awt.SystemColor.controlLtHighlight definition code for java.awt.SystemColor.controlLtHighlight , Constant Field Values

CONTROL_SHADOW sample code for java.awt.SystemColor.CONTROL_SHADOW

public static final int CONTROL_SHADOW
The array index for the controlShadow system color.

See Also:
controlShadow sample code for java.awt.SystemColor.controlShadow definition code for java.awt.SystemColor.controlShadow , Constant Field Values

CONTROL_DK_SHADOW sample code for java.awt.SystemColor.CONTROL_DK_SHADOW

public static final int CONTROL_DK_SHADOW
The array index for the controlDkShadow system color.

See Also:
controlDkShadow sample code for java.awt.SystemColor.controlDkShadow definition code for java.awt.SystemColor.controlDkShadow , Constant Field Values

SCROLLBAR sample code for java.awt.SystemColor.SCROLLBAR

public static final int SCROLLBAR
The array index for the scrollbar system color.

See Also:
scrollbar sample code for java.awt.SystemColor.scrollbar definition code for java.awt.SystemColor.scrollbar , Constant Field Values

INFO sample code for java.awt.SystemColor.INFO

public static final int INFO
The array index for the info system color.

See Also:
info sample code for java.awt.SystemColor.info definition code for java.awt.SystemColor.info , Constant Field Values

INFO_TEXT sample code for java.awt.SystemColor.INFO_TEXT

public static final int INFO_TEXT
The array index for the infoText system color.

See Also:
infoText sample code for java.awt.SystemColor.infoText definition code for java.awt.SystemColor.infoText , Constant Field Values

NUM_COLORS sample code for java.awt.SystemColor.NUM_COLORS

public static final int NUM_COLORS
The number of system colors in the array.

See Also:
Constant Field Values

desktop sample code for java.awt.SystemColor.desktop

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  desktop
The color rendered for the background of the desktop.


activeCaption sample code for java.awt.SystemColor.activeCaption

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  activeCaption
The color rendered for the window-title background of the currently active window.


activeCaptionText sample code for java.awt.SystemColor.activeCaptionText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  activeCaptionText
The color rendered for the window-title text of the currently active window.


activeCaptionBorder sample code for java.awt.SystemColor.activeCaptionBorder

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  activeCaptionBorder
The color rendered for the border around the currently active window.


inactiveCaption sample code for java.awt.SystemColor.inactiveCaption

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  inactiveCaption
The color rendered for the window-title background of inactive windows.


inactiveCaptionText sample code for java.awt.SystemColor.inactiveCaptionText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  inactiveCaptionText
The color rendered for the window-title text of inactive windows.


inactiveCaptionBorder sample code for java.awt.SystemColor.inactiveCaptionBorder

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  inactiveCaptionBorder
The color rendered for the border around inactive windows.


window sample code for java.awt.SystemColor.window

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  window
The color rendered for the background of interior regions inside windows.


windowBorder sample code for java.awt.SystemColor.windowBorder

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  windowBorder
The color rendered for the border around interior regions inside windows.


windowText sample code for java.awt.SystemColor.windowText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  windowText
The color rendered for text of interior regions inside windows.


menu sample code for java.awt.SystemColor.menu

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  menu
The color rendered for the background of menus.


menuText sample code for java.awt.SystemColor.menuText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  menuText
The color rendered for the text of menus.


text sample code for java.awt.SystemColor.text

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  text
The color rendered for the background of text control objects, such as textfields and comboboxes.


textText sample code for java.awt.SystemColor.textText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  textText
The color rendered for the text of text control objects, such as textfields and comboboxes.


textHighlight sample code for java.awt.SystemColor.textHighlight

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  textHighlight
The color rendered for the background of selected items, such as in menus, comboboxes, and text.


textHighlightText sample code for java.awt.SystemColor.textHighlightText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  textHighlightText
The color rendered for the text of selected items, such as in menus, comboboxes, and text.


textInactiveText sample code for java.awt.SystemColor.textInactiveText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  textInactiveText
The color rendered for the text of inactive items, such as in menus.


control sample code for java.awt.SystemColor.control

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  control
The color rendered for the background of control panels and control objects, such as pushbuttons.


controlText sample code for java.awt.SystemColor.controlText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  controlText
The color rendered for the text of control panels and control objects, such as pushbuttons.


controlHighlight sample code for java.awt.SystemColor.controlHighlight

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  controlHighlight
The color rendered for light areas of 3D control objects, such as pushbuttons. This color is typically derived from the control background color to provide a 3D effect.


controlLtHighlight sample code for java.awt.SystemColor.controlLtHighlight

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  controlLtHighlight
The color rendered for highlight areas of 3D control objects, such as pushbuttons. This color is typically derived from the control background color to provide a 3D effect.


controlShadow sample code for java.awt.SystemColor.controlShadow

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  controlShadow
The color rendered for shadow areas of 3D control objects, such as pushbuttons. This color is typically derived from the control background color to provide a 3D effect.


controlDkShadow sample code for java.awt.SystemColor.controlDkShadow

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  controlDkShadow
The color rendered for dark shadow areas on 3D control objects, such as pushbuttons. This color is typically derived from the control background color to provide a 3D effect.


scrollbar sample code for java.awt.SystemColor.scrollbar

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  scrollbar
The color rendered for the background of scrollbars.


info sample code for java.awt.SystemColor.info

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  info
The color rendered for the background of tooltips or spot help.


infoText sample code for java.awt.SystemColor.infoText

public static final SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor  infoText
The color rendered for the text of tooltips or spot help.

Method Detail

getRGB sample code for java.awt.SystemColor.getRGB() definition code for java.awt.SystemColor.getRGB()

public int getRGB()
Gets the "current" RGB value representing the symbolic color. (Bits 24-31 are 0xff, 16-23 are red, 8-15 are green, 0-7 are blue).

Overrides:
getRGB sample code for java.awt.Color.getRGB() definition code for java.awt.Color.getRGB() in class Color sample code for java.awt.Color definition code for java.awt.Color
Returns:
the RGB value of the color in the default sRGB ColorModel.
See Also:
ColorModel.getRGBdefault() sample code for java.awt.image.ColorModel.getRGBdefault() definition code for java.awt.image.ColorModel.getRGBdefault() , Color.getBlue() sample code for java.awt.Color.getBlue() definition code for java.awt.Color.getBlue() , Color.getGreen() sample code for java.awt.Color.getGreen() definition code for java.awt.Color.getGreen() , Color.getRed() sample code for java.awt.Color.getRed() definition code for java.awt.Color.getRed()

createContext sample code for java.awt.SystemColor.createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints) definition code for java.awt.SystemColor.createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints)

public PaintContext sample code for java.awt.PaintContext definition code for java.awt.PaintContext  createContext(ColorModel sample code for java.awt.image.ColorModel definition code for java.awt.image.ColorModel  cm,
                                  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  r,
                                  Rectangle2D sample code for java.awt.geom.Rectangle2D definition code for java.awt.geom.Rectangle2D  r2d,
                                  AffineTransform sample code for java.awt.geom.AffineTransform definition code for java.awt.geom.AffineTransform  xform,
                                  RenderingHints sample code for java.awt.RenderingHints definition code for java.awt.RenderingHints  hints)
Creates and returns a 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.

Specified by:
createContext sample code for java.awt.Paint.createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints) definition code for java.awt.Paint.createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints) in interface Paint sample code for java.awt.Paint definition code for java.awt.Paint
Overrides:
createContext sample code for java.awt.Color.createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints) definition code for java.awt.Color.createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints) in class Color sample code for java.awt.Color definition code for java.awt.Color
Parameters:
cm - the specified ColorModel
r - the specified Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle
r2d - the specified Rectangle2D sample code for java.awt.geom.Rectangle2D definition code for java.awt.geom.Rectangle2D
xform - the specified AffineTransform sample code for java.awt.geom.AffineTransform definition code for java.awt.geom.AffineTransform
hints - the specified RenderingHints sample code for java.awt.RenderingHints definition code for java.awt.RenderingHints
Returns:
a PaintContext that is used to generate a solid color pattern.
See Also:
Paint sample code for java.awt.Paint definition code for java.awt.Paint , PaintContext sample code for java.awt.PaintContext definition code for java.awt.PaintContext , Graphics2D.setPaint(java.awt.Paint) sample code for java.awt.Graphics2D.setPaint(java.awt.Paint) definition code for java.awt.Graphics2D.setPaint(java.awt.Paint)

toString sample code for java.awt.SystemColor.toString() definition code for java.awt.SystemColor.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string representation of this 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.

Overrides:
toString sample code for java.awt.Color.toString() definition code for java.awt.Color.toString() in class Color sample code for java.awt.Color definition code for java.awt.Color
Returns:
a string representation of this Color