API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. SystemColor View Source
Author(s)
Carl Quinn
Amy Fowler
Since
Version
1.26, 08/06/06
Serial
Hierarchy
 Object
      Color
          SystemColor
Implements
 Serializable
Subclasses
Description
publicfinal class SystemColor
  A class to encapsulate symbolic colors representing the color of native GUI objects on a system.
Constructors
private SystemColor (byte index)
  Creates a symbolic color that represents an indexed entry into system color cache.
Methods
Hide/Show inherited methods
public Color brighter () [Inherited From Color]
  Creates a new Color that is a brighter version of this Color.
public PaintContext createContext (ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints) [Overrides Color]
  Creates and returns a PaintContext used to generate a solid color pattern.
public Color darker () [Inherited From Color]
  Creates a new Color that is a darker version of this Color.
publicstatic Color decode (String nm) throws NumberFormatException [Inherited From Color]
  Converts a String to an integer and returns the specified opaque Color.
public boolean equals (Object obj) [Inherited From Color]
  Determines whether another object is equal to this Color.
public int getAlpha () [Inherited From Color]
  Returns the alpha component in the range 0-255.
public int getBlue () [Inherited From Color]
  Returns the blue component in the range 0-255 in the default sRGB space.
publicstatic Color getColor (String nm) [Inherited From Color]
  Finds a color in the system properties.
publicstatic Color getColor (String nm, Color v) [Inherited From Color]
  Finds a color in the system properties.
publicstatic Color getColor (String nm, int v) [Inherited From Color]
  Finds a color in the system properties.
public float getColorComponents (ColorSpace cspace, float[] compArray) [Inherited From Color]
  Returns a float array containing only the color components of the Color in the ColorSpace specified by the cspace parameter.
public float getColorComponents (float[] compArray) [Inherited From Color]
  Returns a float array containing only the color components of the Color, in the ColorSpace of the Color.
public ColorSpace getColorSpace () [Inherited From Color]
  Returns the ColorSpace of this Color.
public float getComponents (ColorSpace cspace, float[] compArray) [Inherited From Color]
  Returns a float array containing the color and alpha components of the Color, in the ColorSpace specified by the cspace parameter.
public float getComponents (float[] compArray) [Inherited From Color]
  Returns a float array containing the color and alpha components of the Color, in the ColorSpace of the Color.
public int getGreen () [Inherited From Color]
  Returns the green component in the range 0-255 in the default sRGB space.
publicstatic Color getHSBColor (float h, float s, float b) [Inherited From Color]
  Creates a Color object based on the specified values for the HSB color model.
public int getRed () [Inherited From Color]
  Returns the red component in the range 0-255 in the default sRGB space.
public int getRGB () [Overrides Color]
  Gets the "current" RGB value representing the symbolic color.
public float getRGBColorComponents (float[] compArray) [Inherited From Color]
  Returns a float array containing only the color components of the Color, in the default sRGB color space.
public float getRGBComponents (float[] compArray) [Inherited From Color]
  Returns a float array containing the color and alpha components of the Color, as represented in the default sRGB color space.
public int getTransparency () [Inherited From Color]
  Returns the transparency mode for this Color.
public int hashCode () [Inherited From Color]
  Computes the hash code for this Color.
publicstatic int HSBtoRGB (float hue, float saturation, float brightness) [Inherited From Color]
  Converts the components of a color, as specified by the HSB model, to an equivalent set of values for the default RGB model.
publicstatic float RGBtoHSB (int r, int g, int b, float[] hsbvals) [Inherited From Color]
  Converts the components of a color, as specified by the default RGB model, to an equivalent set of values for hue, saturation, and brightness that are the three components of the HSB model.
public String toString () [Overrides Color]
  Returns a string representation of this Color's values.
Fields
Hide/Show inherited fields
publicfinalstatic int ACTIVE_CAPTION = "1"
  The array index for the SystemColor.activeCaption system color.
publicfinalstatic int ACTIVE_CAPTION_BORDER = "3"
  The array index for the SystemColor.activeCaptionBorder system color.
publicfinalstatic int ACTIVE_CAPTION_TEXT = "2"
  The array index for the SystemColor.activeCaptionText system color.
publicfinalstatic SystemColor activeCaption
The color rendered for the window-title background of the currently active window.
publicfinalstatic SystemColor activeCaptionBorder
The color rendered for the border around the currently active window.
publicfinalstatic SystemColor activeCaptionText
The color rendered for the window-title text of the currently active window.
publicfinalstatic Color black [Inherited From Color]
  The color black.
publicfinalstatic Color BLACK [Inherited From Color]
  The color black.
publicfinalstatic Color blue [Inherited From Color]
  The color blue.
publicfinalstatic Color BLUE [Inherited From Color]
  The color blue.
publicfinalstatic SystemColor control
The color rendered for the background of control panels and control objects, such as pushbuttons.
publicfinalstatic int CONTROL = "17"
  The array index for the SystemColor.control system color.
publicfinalstatic int CONTROL_DK_SHADOW = "22"
  The array index for the SystemColor.controlDkShadow system color.
publicfinalstatic int CONTROL_HIGHLIGHT = "19"
  The array index for the SystemColor.controlHighlight system color.
publicfinalstatic int CONTROL_LT_HIGHLIGHT = "20"
  The array index for the SystemColor.controlLtHighlight system color.
publicfinalstatic int CONTROL_SHADOW = "21"
  The array index for the SystemColor.controlShadow system color.
publicfinalstatic int CONTROL_TEXT = "18"
  The array index for the SystemColor.controlText system color.
publicfinalstatic SystemColor controlDkShadow
  The color rendered for dark shadow areas on 3D control objects, such as pushbuttons.
publicfinalstatic SystemColor controlHighlight
  The color rendered for light areas of 3D control objects, such as pushbuttons.
publicfinalstatic SystemColor controlLtHighlight
  The color rendered for highlight areas of 3D control objects, such as pushbuttons.
publicfinalstatic SystemColor controlShadow
  The color rendered for shadow areas of 3D control objects, such as pushbuttons.
publicfinalstatic SystemColor controlText
The color rendered for the text of control panels and control objects, such as pushbuttons.
publicfinalstatic Color cyan [Inherited From Color]
  The color cyan.
publicfinalstatic Color CYAN [Inherited From Color]
  The color cyan.
publicfinalstatic Color DARK_GRAY [Inherited From Color]
  The color dark gray.
publicfinalstatic Color darkGray [Inherited From Color]
  The color dark gray.
publicfinalstatic SystemColor desktop
The color rendered for the background of the desktop.
publicfinalstatic int DESKTOP = "0"
  The array index for the SystemColor.desktop system color.
publicfinalstatic Color gray [Inherited From Color]
  The color gray.
publicfinalstatic Color GRAY [Inherited From Color]
  The color gray.
publicfinalstatic Color green [Inherited From Color]
  The color green.
publicfinalstatic Color GREEN [Inherited From Color]
  The color green.
publicfinalstatic int INACTIVE_CAPTION = "4"
  The array index for the SystemColor.inactiveCaption system color.
publicfinalstatic int INACTIVE_CAPTION_BORDER = "6"
  The array index for the SystemColor.inactiveCaptionBorder system color.
publicfinalstatic int INACTIVE_CAPTION_TEXT = "5"
  The array index for the SystemColor.inactiveCaptionText system color.
publicfinalstatic SystemColor inactiveCaption
The color rendered for the window-title background of inactive windows.
publicfinalstatic SystemColor inactiveCaptionBorder
The color rendered for the border around inactive windows.
publicfinalstatic SystemColor inactiveCaptionText
The color rendered for the window-title text of inactive windows.
publicfinalstatic SystemColor info
The color rendered for the background of tooltips or spot help.
publicfinalstatic int INFO = "24"
  The array index for the SystemColor.info system color.
publicfinalstatic int INFO_TEXT = "25"
  The array index for the SystemColor.infoText system color.
publicfinalstatic SystemColor infoText
The color rendered for the text of tooltips or spot help.
publicfinalstatic Color LIGHT_GRAY [Inherited From Color]
  The color light gray.
publicfinalstatic Color lightGray [Inherited From Color]
  The color light gray.
publicfinalstatic Color magenta [Inherited From Color]
  The color magenta.
publicfinalstatic Color MAGENTA [Inherited From Color]
  The color magenta.
publicfinalstatic SystemColor menu
The color rendered for the background of menus.
publicfinalstatic int MENU = "10"
  The array index for the SystemColor.menu system color.
publicfinalstatic int MENU_TEXT = "11"
  The array index for the SystemColor.menuText system color.
publicfinalstatic SystemColor menuText
The color rendered for the text of menus.
publicfinalstatic int NUM_COLORS = "26"
The number of system colors in the array.
publicfinalstatic Color orange [Inherited From Color]
  The color orange.
publicfinalstatic Color ORANGE [Inherited From Color]
  The color orange.
publicfinalstatic Color pink [Inherited From Color]
  The color pink.
publicfinalstatic Color PINK [Inherited From Color]
  The color pink.
publicfinalstatic Color red [Inherited From Color]
  The color red.
publicfinalstatic Color RED [Inherited From Color]
  The color red.
publicfinalstatic SystemColor scrollbar
The color rendered for the background of scrollbars.
publicfinalstatic int SCROLLBAR = "23"
  The array index for the SystemColor.scrollbar system color.
publicfinalstatic SystemColor text
The color rendered for the background of text control objects, such as textfields and comboboxes.
publicfinalstatic int TEXT = "12"
  The array index for the SystemColor.text system color.
publicfinalstatic int TEXT_HIGHLIGHT = "14"
  The array index for the SystemColor.textHighlight system color.
publicfinalstatic int TEXT_HIGHLIGHT_TEXT = "15"
  The array index for the SystemColor.textHighlightText system color.
publicfinalstatic int TEXT_INACTIVE_TEXT = "16"
  The array index for the SystemColor.textInactiveText system color.
publicfinalstatic int TEXT_TEXT = "13"
  The array index for the SystemColor.textText system color.
publicfinalstatic SystemColor textHighlight
The color rendered for the background of selected items, such as in menus, comboboxes, and text.
publicfinalstatic SystemColor textHighlightText
The color rendered for the text of selected items, such as in menus, comboboxes, and text.
publicfinalstatic SystemColor textInactiveText
The color rendered for the text of inactive items, such as in menus.
publicfinalstatic SystemColor textText
The color rendered for the text of text control objects, such as textfields and comboboxes.
pack-private int value [Inherited From Color]
  The color value.
publicfinalstatic Color white [Inherited From Color]
  The color white.
publicfinalstatic Color WHITE [Inherited From Color]
  The color white.
publicfinalstatic SystemColor window
The color rendered for the background of interior regions inside windows.
publicfinalstatic int WINDOW = "7"
  The array index for the SystemColor.window system color.
publicfinalstatic int WINDOW_BORDER = "8"
  The array index for the SystemColor.windowBorder system color.
publicfinalstatic int WINDOW_TEXT = "9"
  The array index for the SystemColor.windowText system color.
publicfinalstatic SystemColor windowBorder
The color rendered for the border around interior regions inside windows.
publicfinalstatic SystemColor windowText
The color rendered for text of interior regions inside windows.
publicfinalstatic Color yellow [Inherited From Color]
  The color yellow.
publicfinalstatic Color YELLOW [Inherited From Color]
  The color yellow.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar