public class OceanTheme extends DefaultMetalTheme
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)
public OceanTheme()
Creates an instance of OceanTheme
public void addCustomEntriesToTable(UIDefaults table)
Add this theme's custom entries to the defaults table.
addCustomEntriesToTable
in class MetalTheme
table
- the defaults table, non-nullNullPointerException
- if table
is null
MetalLookAndFeel.getDefaults()
public String getName()
Return the name of this theme, "Ocean".
getName
in class DefaultMetalTheme
protected ColorUIResource getPrimary1()
Returns the primary 1 color. This returns a color with an rgb hex value of 0x6382BF
.
getPrimary1
in class DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getPrimary2()
Returns the primary 2 color. This returns a color with an rgb hex value of 0xA3B8CC
.
getPrimary2
in class DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getPrimary3()
Returns the primary 3 color. This returns a color with an rgb hex value of 0xB8CFE5
.
getPrimary3
in class DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary1()
Returns the secondary 1 color. This returns a color with an rgb hex value of 0x7A8A99
.
getSecondary1
in class DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary2()
Returns the secondary 2 color. This returns a color with an rgb hex value of 0xB8CFE5
.
getSecondary2
in class DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary3()
Returns the secondary 3 color. This returns a color with an rgb hex value of 0xEEEEEE
.
getSecondary3
in class DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getBlack()
Returns the black color. This returns a color with an rgb hex value of 0x333333
.
getBlack
in class MetalTheme
Color.decode(java.lang.String)
public ColorUIResource getDesktopColor()
Returns the desktop color. This returns a color with an rgb hex value of 0xFFFFFF
.
getDesktopColor
in class MetalTheme
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
.
getInactiveControlTextColor
in class MetalTheme
public ColorUIResource getControlTextColor()
Returns the control text color. This returns a color with an rgb hex value of 0x333333
.
getControlTextColor
in class MetalTheme
public ColorUIResource getMenuDisabledForeground()
Returns the menu disabled foreground color. This returns a color with an rgb hex value of 0x999999
.
getMenuDisabledForeground
in class MetalTheme
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.