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, YELLOW
BITMASK, 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.