public final class SystemColor extends Color implements Serializable
SystemColor对象的“当前”的RGB值,
getRGB应使用而不是
equals。
请注意,这些系统的颜色被应用到图形用户界面的方式可能会略有不同,从平台到平台,因为在每个平台上的图形用户界面的对象可能会呈现不同的。
系统颜色值也可以通过java.awt.Toolkit的getDesktopProperty方法可。
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_CAPTION
为
activeCaption系统颜色数组索引。
|
static int |
ACTIVE_CAPTION_BORDER
为
activeCaptionBorder系统颜色数组索引。
|
static int |
ACTIVE_CAPTION_TEXT
为
activeCaptionText系统颜色数组索引。
|
static SystemColor |
activeCaption
用于当前活动窗口的窗口标题背景的颜色。
|
static SystemColor |
activeCaptionBorder
用于围绕当前活动窗口的边框的颜色。
|
static SystemColor |
activeCaptionText
用于当前活动窗口的窗口标题文本的颜色。
|
static SystemColor |
control
为控制面板和控制对象的背景上呈现的颜色,如按钮。
|
static int |
CONTROL
为
control系统颜色数组索引。
|
static int |
CONTROL_DK_SHADOW
为
controlDkShadow系统颜色数组索引。
|
static int |
CONTROL_HIGHLIGHT
为
controlHighlight系统颜色数组索引。
|
static int |
CONTROL_LT_HIGHLIGHT
为
controlLtHighlight系统颜色数组索引。
|
static int |
CONTROL_SHADOW
为
controlShadow系统颜色数组索引。
|
static int |
CONTROL_TEXT
为
controlText系统颜色数组索引。
|
static SystemColor |
controlDkShadow
在3D控制物体阴影区呈现的颜色,如按钮。
|
static SystemColor |
controlHighlight
对于三维控制对象亮区呈现的颜色,如按钮。
|
static SystemColor |
controlLtHighlight
对于三维控制对象突出领域呈现的颜色,如按钮。
|
static SystemColor |
controlShadow
对于三维控制物体阴影区域呈现的颜色,如按钮。
|
static SystemColor |
controlText
为控制面板和控制对象的文本呈现的颜色,如按钮。
|
static SystemColor |
desktop
为桌面背景渲染的颜色。
|
static int |
DESKTOP
为
desktop系统颜色数组索引。
|
static int |
INACTIVE_CAPTION
为
inactiveCaption系统颜色数组索引。
|
static int |
INACTIVE_CAPTION_BORDER
为
inactiveCaptionBorder系统颜色数组索引。
|
static int |
INACTIVE_CAPTION_TEXT
为
inactiveCaptionText系统颜色数组索引。
|
static SystemColor |
inactiveCaption
用于非活动窗口的窗口标题背景的颜色。
|
static SystemColor |
inactiveCaptionBorder
在不活动窗口的边框上渲染的颜色。
|
static SystemColor |
inactiveCaptionText
用于非活动窗口的窗口标题文本的颜色。
|
static SystemColor |
info
色彩渲染的背景提示或现场帮助。
|
static int |
INFO
为
info系统颜色数组索引。
|
static int |
INFO_TEXT
为
infoText系统颜色数组索引。
|
static SystemColor |
infoText
颜色呈现的文本提示或现场帮助。
|
static SystemColor |
menu
菜单的背景颜色。
|
static int |
MENU
为
menu系统颜色数组索引。
|
static int |
MENU_TEXT
为
menuText系统颜色数组索引。
|
static SystemColor |
menuText
菜单文本的颜色。
|
static int |
NUM_COLORS
数组中的系统颜色的数目。
|
static SystemColor |
scrollbar
为滚动条的背景上呈现的颜色。
|
static int |
SCROLLBAR
为
scrollbar系统颜色数组索引。
|
static SystemColor |
text
对文本的控制对象的背景上呈现的颜色,如文本框和组合框。
|
static int |
TEXT
为
text系统颜色数组索引。
|
static int |
TEXT_HIGHLIGHT
为
textHighlight系统颜色数组索引。
|
static int |
TEXT_HIGHLIGHT_TEXT
为
textHighlightText系统颜色数组索引。
|
static int |
TEXT_INACTIVE_TEXT
为
textInactiveText系统颜色数组索引。
|
static int |
TEXT_TEXT
为
textText系统颜色数组索引。
|
static SystemColor |
textHighlight
为选定项的背景上呈现的颜色,如菜单、组合框、文本。
|
static SystemColor |
textHighlightText
为选定项的文本呈现的颜色,如菜单、组合框、文本。
|
static SystemColor |
textInactiveText
用于非活动项的文本的颜色,如在菜单中。
|
static SystemColor |
textText
对于文本控件对象的文本呈现的颜色,如文本框和组合框。
|
static SystemColor |
window
用于在窗口中的内部区域的背景渲染的颜色。
|
static int |
WINDOW
为
window系统颜色数组索引。
|
static int |
WINDOW_BORDER
为
windowBorder系统颜色数组索引。
|
static int |
WINDOW_TEXT
为
windowText系统颜色数组索引。
|
static SystemColor |
windowBorder
在窗户周围的内部区域的边界渲染的颜色。
|
static SystemColor |
windowText
在窗口中的内部区域的文本的颜色。
|
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, YELLOWBITMASK, OPAQUE, TRANSLUCENT| Modifier and Type | Method and Description |
|---|---|
String |
toString()
返回该
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@Native public static final int DESKTOP
desktop系统颜色数组索引。
desktop,
Constant Field Values
@Native public static final int ACTIVE_CAPTION
activeCaption系统颜色数组索引。
@Native public static final int ACTIVE_CAPTION_TEXT
activeCaptionText系统颜色数组索引。
@Native public static final int ACTIVE_CAPTION_BORDER
activeCaptionBorder系统颜色数组索引。
@Native public static final int INACTIVE_CAPTION
inactiveCaption系统颜色数组索引。
@Native public static final int INACTIVE_CAPTION_TEXT
inactiveCaptionText系统颜色数组索引。
@Native public static final int INACTIVE_CAPTION_BORDER
inactiveCaptionBorder系统颜色数组索引。
@Native public static final int WINDOW
window系统颜色数组索引。
window,
Constant Field Values
@Native public static final int WINDOW_BORDER
windowBorder系统颜色数组索引。
@Native public static final int WINDOW_TEXT
windowText系统颜色数组索引。
windowText,
Constant Field Values
@Native public static final int MENU
menu系统颜色数组索引。
menu,
Constant Field Values
@Native public static final int MENU_TEXT
menuText系统颜色数组索引。
menuText,
Constant Field Values
@Native public static final int TEXT
text系统颜色数组索引。
text,
Constant Field Values
@Native public static final int TEXT_TEXT
textText系统颜色数组索引。
textText,
Constant Field Values
@Native public static final int TEXT_HIGHLIGHT
textHighlight系统颜色数组索引。
@Native public static final int TEXT_HIGHLIGHT_TEXT
textHighlightText系统颜色数组索引。
@Native public static final int TEXT_INACTIVE_TEXT
textInactiveText系统颜色数组索引。
@Native public static final int CONTROL
control系统颜色数组索引。
control,
Constant Field Values
@Native public static final int CONTROL_TEXT
controlText系统颜色数组索引。
controlText,
Constant Field Values
@Native public static final int CONTROL_HIGHLIGHT
controlHighlight系统颜色数组索引。
@Native public static final int CONTROL_LT_HIGHLIGHT
controlLtHighlight系统颜色数组索引。
@Native public static final int CONTROL_SHADOW
controlShadow系统颜色数组索引。
@Native public static final int CONTROL_DK_SHADOW
controlDkShadow系统颜色数组索引。
@Native public static final int SCROLLBAR
scrollbar系统颜色数组索引。
scrollbar,
Constant Field Values
@Native public static final int INFO
info系统颜色数组索引。
info,
Constant Field Values
@Native public static final int INFO_TEXT
infoText系统颜色数组索引。
infoText,
Constant Field Values
@Native public static final int NUM_COLORS
public static final SystemColor desktop
public static final SystemColor activeCaption
public static final SystemColor activeCaptionText
public static final SystemColor activeCaptionBorder
public static final SystemColor inactiveCaption
public static final SystemColor inactiveCaptionText
public static final SystemColor inactiveCaptionBorder
public static final SystemColor window
public static final SystemColor windowBorder
public static final SystemColor windowText
public static final SystemColor menu
public static final SystemColor menuText
public static final SystemColor text
public static final SystemColor textText
public static final SystemColor textHighlight
public static final SystemColor textHighlightText
public static final SystemColor textInactiveText
public static final SystemColor control
public static final SystemColor controlText
public static final SystemColor controlHighlight
control背景颜色来源提供一个3D的效果。
public static final SystemColor controlLtHighlight
control背景颜色来源提供一个3D的效果。
public static final SystemColor controlShadow
control背景颜色来源提供一个3D的效果。
public static final SystemColor controlDkShadow
control背景颜色来源提供一个3D的效果。
public static final SystemColor scrollbar
public static final SystemColor info
public static final SystemColor infoText
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.