is new.
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.
This class provides an updated look for applications using 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.
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.
| Constructor Summary | |
|---|---|
OceanTheme
()
Creates
|
|
| Method Summary | |
|---|---|
| void |
addCustomEntriesToTable
(
UIDefaults
table) Add this theme's custom entries to the defaults table. |
| protected ColorUIResource |
getBlack
()
Returns
black color.
|
| ColorUIResource |
getControlTextColor
()
Returns
control text color.
|
| ColorUIResource |
getDesktopColor
()
Returns
color.
|
| ColorUIResource |
getInactiveControlTextColor
()
Returns
control text color.
|
| ColorUIResource |
getMenuDisabledForeground
()
Returns
disabled foreground color.
|
| String |
getName
() Return the name of this theme, "Ocean". |
| protected ColorUIResource |
getPrimary1
()
Returns
primary 1 color.
|
| protected ColorUIResource |
getPrimary2
()
Returns
primary 2 color.
|
| protected ColorUIResource |
getPrimary3
()
Returns
primary 3 color.
|
| protected ColorUIResource |
getSecondary1
()
Returns
secondary 1 color.
|
| protected ColorUIResource |
getSecondary2
()
Returns
secondary 2 color.
|
| protected ColorUIResource |
getSecondary3
()
Returns
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()
Creates
| Method Detail |
|---|
public void addCustomEntriesToTable(UIDefaults table)
- if table is null
See Also:
MetalLookAndFeel.getDefaults()
public String getName()
protected ColorUIResource getPrimary1()
Returns the primary 1 color. This returns a color with an rgb hex value of 0x6382BF.
the primary 1 color
See Also:
Color.decode(java.lang.String)
protected ColorUIResource getPrimary2()
Returns the primary 2 color. This returns a color with an rgb hex value of 0xA3B8CC.
the primary 2 color
See Also:
Color.decode(java.lang.String)
protected ColorUIResource getPrimary3()
Returns the primary 3 color. This returns a color with an rgb hex value of 0xB8CFE5.
the primary 3 color
See Also:
Color.decode(java.lang.String)
protected ColorUIResource getSecondary1()
Returns the secondary 1 color. This returns a color with an rgb hex value of 0x7A8A99.
the secondary 1 color
See Also:
Color.decode(java.lang.String)
protected ColorUIResource getSecondary2()
Returns the secondary 2 color. This returns a color with an rgb hex value of 0xB8CFE5.
the secondary 2 color
See Also:
Color.decode(java.lang.String)
protected ColorUIResource getSecondary3()
Returns the secondary 3 color. This returns a color with an rgb hex value of 0xEEEEEE.
the secondary 3 color
See Also:
Color.decode(java.lang.String)
protected ColorUIResource getBlack()
Returns the black color. This returns a color with an rgb hex value of 0x333333.
the black color
See Also:
Color.decode(java.lang.String)
public ColorUIResource getDesktopColor()
Returns the desktop color. This returns a color with an rgb hex value of 0xFFFFFF.
the desktop color
See Also:
Color.decode(java.lang.String)
public ColorUIResource getInactiveControlTextColor()
Returns the inactive control text color. This returns a color with an rgb hex value of 0x999999.
the inactive control text color
public ColorUIResource getControlTextColor()
Returns the control text color. This returns a color with an rgb hex value of 0x333333.
the control text color
public ColorUIResource getMenuDisabledForeground()
Returns the menu disabled foreground color. This returns a color with an rgb hex value of 0x999999.
the menu disabled foreground color