javax.swing.plaf.metal

Class OceanTheme

public class OceanTheme extends DefaultMetalTheme

A modern theme for the Metal Look & Feel.

Since: 1.5

Method Summary
voidaddCustomEntriesToTable(UIDefaults defaults)
Adds customized entries to the UIDefaults table.
protected ColorUIResourcegetBlack()
Returns the OceanTheme's color for black, the RGB value (51, 51, 51).
ColorUIResourcegetControlTextColor()
Returns the color for control text, which is the value of the theme's black value.
ColorUIResourcegetDesktopColor()
Returns the desktop color, which is the theme's white color.
ColorUIResourcegetInactiveControlTextColor()
Returns the color for inactive control text, which is the RGB value (153, 153, 153).
ColorUIResourcegetMenuDisabledForeground()
Returns the OceanTheme's color for disabled menu foreground,
StringgetName()
Returns the name of this theme, "Ocean"
protected ColorUIResourcegetPrimary1()
Return the OceanTheme's value for primary 1, the RGB value (99, 130, 191).
protected ColorUIResourcegetPrimary2()
Return the OceanTheme's value for primary 2, the RGB value (163, 184, 204).
protected ColorUIResourcegetPrimary3()
Return the OceanTheme's value for primary 1, the RGB value (184, 207, 229).
protected ColorUIResourcegetSecondary1()
Return the OceanTheme's value for secondary 1, the RGB value (122, 138, 153).
protected ColorUIResourcegetSecondary2()
Return the OceanTheme's value for secondary 2, the RGB value (184, 207, 229).
protected ColorUIResourcegetSecondary3()
Return the OceanTheme's value for secondary 3, the RGB value (238, 238, 238).

Method Detail

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults defaults)
Adds customized entries to the UIDefaults table.

Parameters: defaults the UI defaults table

getBlack

protected ColorUIResource getBlack()
Returns the OceanTheme's color for black, the RGB value (51, 51, 51).

Returns: Returns the OceanTheme's value for black

getControlTextColor

public ColorUIResource getControlTextColor()
Returns the color for control text, which is the value of the theme's black value.

getDesktopColor

public ColorUIResource getDesktopColor()
Returns the desktop color, which is the theme's white color.

getInactiveControlTextColor

public ColorUIResource getInactiveControlTextColor()
Returns the color for inactive control text, which is the RGB value (153, 153, 153).

getMenuDisabledForeground

public ColorUIResource getMenuDisabledForeground()
Returns the OceanTheme's color for disabled menu foreground,

getName

public String getName()
Returns the name of this theme, "Ocean"

getPrimary1

protected ColorUIResource getPrimary1()
Return the OceanTheme's value for primary 1, the RGB value (99, 130, 191).

getPrimary2

protected ColorUIResource getPrimary2()
Return the OceanTheme's value for primary 2, the RGB value (163, 184, 204).

getPrimary3

protected ColorUIResource getPrimary3()
Return the OceanTheme's value for primary 1, the RGB value (184, 207, 229).

getSecondary1

protected ColorUIResource getSecondary1()
Return the OceanTheme's value for secondary 1, the RGB value (122, 138, 153).

getSecondary2

protected ColorUIResource getSecondary2()
Return the OceanTheme's value for secondary 2, the RGB value (184, 207, 229).

getSecondary3

protected ColorUIResource getSecondary3()
Return the OceanTheme's value for secondary 3, the RGB value (238, 238, 238).