This class contains the various "system colors" in use by the native
windowing system. The getRGB()
method is dynamic on systems
which support dynamic system color changes, and most methods in the
superclass are written to use this dynamic value when reporting colors.
However, the equals()
method is not dynamic, and does not
track the actual color of instances in this class. This means that equals
may give surprising results; you are better off relying on getRGB.
ACTIVE_CAPTION
public static final int ACTIVE_CAPTION
Array index of the active caption color. Used by
Toolkit.loadSystemColors(int[])
.
ACTIVE_CAPTION_BORDER
public static final int ACTIVE_CAPTION_BORDER
Array index of the active caption border color. Used by
Toolkit.loadSystemColors(int[])
.
ACTIVE_CAPTION_TEXT
public static final int ACTIVE_CAPTION_TEXT
Array index of the active caption text color. Used by
Toolkit.loadSystemColors(int[])
.
CONTROL
public static final int CONTROL
Array index of the control background color. Used by
Toolkit.loadSystemColors(int[])
.
CONTROL_DK_SHADOW
public static final int CONTROL_DK_SHADOW
Array index of the darkly shadowed control background color. Used by
Toolkit.loadSystemColors(int[])
.
CONTROL_HIGHLIGHT
public static final int CONTROL_HIGHLIGHT
Array index of the highlighted control background color. Used by
Toolkit.loadSystemColors(int[])
.
CONTROL_LT_HIGHLIGHT
public static final int CONTROL_LT_HIGHLIGHT
Array index of the lightly highlighted control background color. Used by
Toolkit.loadSystemColors(int[])
.
CONTROL_SHADOW
public static final int CONTROL_SHADOW
Array index of the shadowed control background color. Used by
Toolkit.loadSystemColors(int[])
.
CONTROL_TEXT
public static final int CONTROL_TEXT
Array index of the control text color. Used by
Toolkit.loadSystemColors(int[])
.
DESKTOP
public static final int DESKTOP
Array index of the desktop color. Used by
Toolkit.loadSystemColors(int[])
.
INACTIVE_CAPTION
public static final int INACTIVE_CAPTION
Array index of the inactive caption color. Used by
Toolkit.loadSystemColors(int[])
.
INACTIVE_CAPTION_BORDER
public static final int INACTIVE_CAPTION_BORDER
Array index of the inactive caption border color. Used by
Toolkit.loadSystemColors(int[])
.
INACTIVE_CAPTION_TEXT
public static final int INACTIVE_CAPTION_TEXT
Array index of the inactive caption text color. Used by
Toolkit.loadSystemColors(int[])
.
INFO
public static final int INFO
Array index of the info background color. Used by
Toolkit.loadSystemColors(int[])
.
INFO_TEXT
public static final int INFO_TEXT
Array index of the info text color. Used by
Toolkit.loadSystemColors(int[])
.
MENU
public static final int MENU
Array index of the menu background color. Used by
Toolkit.loadSystemColors(int[])
.
MENU_TEXT
public static final int MENU_TEXT
Array index of the menu text color. Used by
Toolkit.loadSystemColors(int[])
.
NUM_COLORS
public static final int NUM_COLORS
The number of system colors. Used by
Toolkit.loadSystemColors(int[])
.
SCROLLBAR
public static final int SCROLLBAR
Array index of the scrollbar background color. Used by
Toolkit.loadSystemColors(int[])
.
TEXT
public static final int TEXT
Array index of the text background color. Used by
Toolkit.loadSystemColors(int[])
.
TEXT_HIGHLIGHT
public static final int TEXT_HIGHLIGHT
Array index of the highlighted text background color. Used by
Toolkit.loadSystemColors(int[])
.
TEXT_HIGHLIGHT_TEXT
public static final int TEXT_HIGHLIGHT_TEXT
Array index of the highlighted text foreground color. Used by
Toolkit.loadSystemColors(int[])
.
TEXT_INACTIVE_TEXT
public static final int TEXT_INACTIVE_TEXT
Array index of the inactive text foreground color. Used by
Toolkit.loadSystemColors(int[])
.
TEXT_TEXT
public static final int TEXT_TEXT
Array index of the text foreground color. Used by
Toolkit.loadSystemColors(int[])
.
WINDOW
public static final int WINDOW
Array index of the window background color. Used by
Toolkit.loadSystemColors(int[])
.
WINDOW_BORDER
public static final int WINDOW_BORDER
Array index of the window border color. Used by
Toolkit.loadSystemColors(int[])
.
WINDOW_TEXT
public static final int WINDOW_TEXT
Array index of the window text color. Used by
Toolkit.loadSystemColors(int[])
.
SystemColor.java -- access dynamic system color values
Copyright (C) 1999, 2002, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.