public final class SystemColor extends Color implements Serializable
SystemColor与非象征性Color对象对象, getRGB应使用,而不是equals 。
请注意,将这些系统颜色应用于GUI对象的方式可能会从平台到平台略有不同,因为GUI对象可能在每个平台上呈现不同的方式。
系统颜色值也可以通过getDesktopProperty方法在java.awt.Toolkit上java.awt.Toolkit 。
| 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
为3D控制对象(如按钮)的亮区渲染颜色。
|
static SystemColor |
controlLtHighlight
为3D控件对象的高亮区域(如按钮)渲染颜色。
|
static SystemColor |
controlShadow
为3D控件对象(如按钮)的阴影区域呈现的颜色。
|
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
为Windows内部区域背景渲染的颜色。
|
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系统颜色。
activeCaption ,
Constant Field Values
@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系统颜色的数组索引。
inactiveCaption ,
Constant Field Values
@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系统颜色的数组索引。
windowBorder ,
Constant Field Values
@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系统颜色。
textHighlight ,
Constant Field Values
@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系统颜色的数组索引。
controlShadow ,
Constant Field Values
@Native public static final int CONTROL_DK_SHADOW
controlDkShadow系统颜色的数组索引。
controlDkShadow ,
Constant Field Values
@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.