|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
javax.swing.plaf.metal.OceanTheme
public class OceanTheme
The default theme for the MetalLookAndFeel.
The designers of the Metal Look and Feel strive to keep the default look up to date, possibly through the use of new themes in the future. Therefore, developers should only use this class directly when they wish to customize the "Ocean" look, or force it to be the current theme, regardless of future updates.
All colors returned by OceanTheme are completely
opaque.
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)| Constructor Summary | |
|---|---|
OceanTheme()
Creates an instance of OceanTheme |
|
| Method Summary | |
|---|---|
void |
addCustomEntriesToTable(UIDefaults table)
Add this theme's custom entries to the defaults table. |
protected ColorUIResource |
getBlack()
Returns the black color. |
ColorUIResource |
getControlTextColor()
Returns the control text color. |
ColorUIResource |
getDesktopColor()
Returns the desktop color. |
ColorUIResource |
getInactiveControlTextColor()
Returns the inactive control text color. |
ColorUIResource |
getMenuDisabledForeground()
Returns the menu disabled foreground color. |
String |
getName()
Return the name of this theme, "Ocean". |
protected ColorUIResource |
getPrimary1()
Returns the primary 1 color. |
protected ColorUIResource |
getPrimary2()
Returns the primary 2 color. |
protected ColorUIResource |
getPrimary3()
Returns the primary 3 color. |
protected ColorUIResource |
getSecondary1()
Returns the secondary 1 color. |
protected ColorUIResource |
getSecondary2()
Returns the secondary 2 color. |
protected ColorUIResource |
getSecondary3()
Returns the secondary 3 color. |
| Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme |
|---|
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OceanTheme()
OceanTheme
| Method Detail |
|---|
public void addCustomEntriesToTable(UIDefaults table)
addCustomEntriesToTable in class MetalThemetable - the defaults table, non-null
NullPointerException - if table is nullMetalLookAndFeel.getDefaults()public String getName()
getName in class DefaultMetalThemeprotected ColorUIResource getPrimary1()
0x6382BF.
getPrimary1 in class DefaultMetalThemeColor.decode(java.lang.String)protected ColorUIResource getPrimary2()
0xA3B8CC.
getPrimary2 in class DefaultMetalThemeColor.decode(java.lang.String)protected ColorUIResource getPrimary3()
0xB8CFE5.
getPrimary3 in class DefaultMetalThemeColor.decode(java.lang.String)protected ColorUIResource getSecondary1()
0x7A8A99.
getSecondary1 in class DefaultMetalThemeColor.decode(java.lang.String)protected ColorUIResource getSecondary2()
0xB8CFE5.
getSecondary2 in class DefaultMetalThemeColor.decode(java.lang.String)protected ColorUIResource getSecondary3()
0xEEEEEE.
getSecondary3 in class DefaultMetalThemeColor.decode(java.lang.String)protected ColorUIResource getBlack()
0x333333.
getBlack in class MetalThemeColor.decode(java.lang.String)public ColorUIResource getDesktopColor()
0xFFFFFF.
getDesktopColor in class MetalThemeColor.decode(java.lang.String)public ColorUIResource getInactiveControlTextColor()
0x999999.
getInactiveControlTextColor in class MetalThemepublic ColorUIResource getControlTextColor()
0x333333.
getControlTextColor in class MetalThemepublic ColorUIResource getMenuDisabledForeground()
0x999999.
getMenuDisabledForeground in class MetalTheme
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.