java.lang.Object
java.awt.Color
java.awt.SystemColor
- 所有已实现的接口:
-
Paint,Transparency,Serializable
一个用于封装代表系统上本地GUI对象颜色的符号颜色的类。对于支持系统颜色动态更新(当用户更改颜色时)的系统,这些符号颜色的实际RGB值也会动态更改。为了将
SystemColor对象的“当前”RGB值与非符号颜色对象进行比较,应使用getRGB而不是equals。
请注意,这些系统颜色应用于GUI对象的方式可能因平台而异,因为GUI对象在每个平台上可能以不同方式呈现。
系统颜色值也可以通过java.awt.Toolkit上的getDesktopProperty方法获得。
- 参见:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intactiveCaption系统颜色的数组索引。static final intactiveCaptionBorder系统颜色的数组索引。static final intactiveCaptionText系统颜色的数组索引。static final SystemColor当前活动窗口的窗口标题背景渲染的颜色。static final SystemColor当前活动窗口周围边框渲染的颜色。static final SystemColor当前活动窗口窗口标题文本渲染的颜色。static final SystemColor控制面板和控制对象(如按钮)背景渲染的颜色。static final intcontrol系统颜色的数组索引。static final intcontrolDkShadow系统颜色的数组索引。static final intcontrolHighlight系统颜色的数组索引。static final intcontrolLtHighlight系统颜色的数组索引。static final intcontrolShadow系统颜色的数组索引。static final intcontrolText系统颜色的数组索引。static final SystemColor3D控制对象(如按钮)暗阴影区域渲染的颜色。static final SystemColor3D控制对象(如按钮)亮区域渲染的颜色。static final SystemColor3D控制对象(如按钮)高亮区域渲染的颜色。static final SystemColor3D控制对象(如按钮)阴影区域渲染的颜色。static final SystemColor控制面板和控制对象(如按钮)文本渲染的颜色。static final SystemColor桌面背景渲染的颜色。static final intdesktop系统颜色的数组索引。static final intinactiveCaption系统颜色的数组索引。static final intinactiveCaptionBorder系统颜色的数组索引。static final intinactiveCaptionText系统颜色的数组索引。static final SystemColor非活动窗口的窗口标题背景渲染的颜色。static final SystemColor非活动窗口周围边框渲染的颜色。static final SystemColor非活动窗口窗口标题文本渲染的颜色。static final SystemColor工具提示或点帮助的背景渲染的颜色。static final intinfo系统颜色的数组索引。static final intinfoText系统颜色的数组索引。static final SystemColor工具提示或点帮助的文本渲染的颜色。static final SystemColor菜单背景渲染的颜色。static final intmenu系统颜色的数组索引。static final intmenuText系统颜色的数组索引。static final SystemColor菜单文本渲染的颜色。static final int数组中系统颜色的数量。static final SystemColor滚动条背景渲染的颜色。static final intscrollbar系统颜色的数组索引。static final SystemColor文本控制对象(如文本框和组合框)背景渲染的颜色。static final inttext系统颜色的数组索引。static final inttextHighlight系统颜色的数组索引。static final inttextHighlightText系统颜色的数组索引。static final inttextInactiveText系统颜色的数组索引。static final inttextText系统颜色的数组索引。static final SystemColor选定项目的背景渲染的颜色,例如菜单、组合框和文本中的项目。static final SystemColor选定项目的文本渲染的颜色,例如菜单、组合框和文本中的项目。static final SystemColor非活动项目的文本渲染的颜色,例如菜单中的项目。static final SystemColor文本控制对象(如文本框和组合框)文本渲染的颜色。static final SystemColor窗口内部区域的背景渲染的颜色。static final intwindow系统颜色的数组索引。static final intwindowBorder系统颜色的数组索引。static final intwindowText系统颜色的数组索引。static final SystemColor窗口内部区域周围边框渲染的颜色。static final SystemColor窗口内部区域文本渲染的颜色。Fields declared in class java.awt.Color
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, YELLOWFields declared in interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Method Summary
Methods declared in class java.awt.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
-
Field Details
-
DESKTOP
desktop系统颜色的数组索引。- 参见:
-
ACTIVE_CAPTION
activeCaption系统颜色的数组索引。- 参见:
-
ACTIVE_CAPTION_TEXT
activeCaptionText系统颜色的数组索引。- 参见:
-
ACTIVE_CAPTION_BORDER
activeCaptionBorder系统颜色的数组索引。- 参见:
-
INACTIVE_CAPTION
inactiveCaption系统颜色的数组索引。- 参见:
-
INACTIVE_CAPTION_TEXT
inactiveCaptionText系统颜色的数组索引。- 参见:
-
INACTIVE_CAPTION_BORDER
inactiveCaptionBorder系统颜色的数组索引。- 参见:
-
WINDOW
window系统颜色的数组索引。- 参见:
-
WINDOW_BORDER
windowBorder系统颜色的数组索引。- 参见:
-
WINDOW_TEXT
windowText系统颜色的数组索引。- 参见:
-
MENU
menu系统颜色的数组索引。- 参见:
-
MENU_TEXT
menuText系统颜色的数组索引。- 参见:
-
TEXT
text系统颜色的数组索引。- 参见:
-
TEXT_TEXT
textText系统颜色的数组索引。- 参见:
-
TEXT_HIGHLIGHT
textHighlight系统颜色的数组索引。- 参见:
-
TEXT_HIGHLIGHT_TEXT
textHighlightText系统颜色的数组索引。- 参见:
-
TEXT_INACTIVE_TEXT
textInactiveText系统颜色的数组索引。- 参见:
-
CONTROL
control系统颜色的数组索引。- 参见:
-
CONTROL_TEXT
controlText系统颜色的数组索引。- 参见:
-
CONTROL_HIGHLIGHT
controlHighlight系统颜色的数组索引。- 参见:
-
CONTROL_LT_HIGHLIGHT
controlLtHighlight系统颜色的数组索引。- 参见:
-
CONTROL_SHADOW
controlShadow系统颜色的数组索引。- 参见:
-
CONTROL_DK_SHADOW
controlDkShadow系统颜色的数组索引。- 参见:
-
SCROLLBAR
scrollbar系统颜色的数组索引。- 参见:
-
INFO
info系统颜色的数组索引。- 参见:
-
INFO_TEXT
infoText系统颜色的数组索引。- 参见:
-
NUM_COLORS
数组中系统颜色的数量。- 参见:
-
desktop
桌面背景的颜色。 -
activeCaption
当前活动窗口的窗口标题背景的颜色。 -
activeCaptionText
当前活动窗口的窗口标题文本的颜色。 -
activeCaptionBorder
当前活动窗口周围边框的颜色。 -
inactiveCaption
非活动窗口的窗口标题背景的颜色。 -
inactiveCaptionText
非活动窗口的窗口标题文本的颜色。 -
inactiveCaptionBorder
非活动窗口周围边框的颜色。 -
window
窗口内部区域背景的颜色。 -
windowBorder
窗口内部区域周围边框的颜色。 -
windowText
窗口内部区域文本的颜色。 -
text
文本控件对象(如文本框和组合框)的背景颜色。 -
textText
文本控件对象(如文本框和组合框)的文本颜色。 -
textHighlight
选定项目(如菜单、组合框和文本中的项目)的背景颜色。 -
textHighlightText
选定项目(如菜单、组合框和文本中的项目)的文本颜色。 -
textInactiveText
非活动项目(如菜单中的项目)的文本颜色。 -
control
控制面板和控制对象(如按钮)的背景颜色。 -
controlText
控制面板和控制对象(如按钮)的文本颜色。 -
controlHighlight
3D 控制对象的浅色区域的颜色,如按钮。此颜色通常从control背景颜色派生,以提供3D效果。 -
controlLtHighlight
3D 控制对象的高亮区域的颜色,如按钮。此颜色通常从control背景颜色派生,以提供3D效果。 -
controlShadow
3D 控制对象的阴影区域的颜色,如按钮。此颜色通常从control背景颜色派生,以提供3D效果。 -
controlDkShadow
3D 控制对象的深色阴影区域的颜色,如按钮。此颜色通常从control背景颜色派生,以提供3D效果。 -
scrollbar
滚动条的背景颜色。 -
info
工具提示或点帮助的背景颜色。 -
infoText
工具提示或点帮助的文本颜色。
-
-
Method Details