public class

OceanTheme

extends DefaultMetalTheme
java.lang.Object
   ↳ javax.swing.plaf.metal.MetalTheme
     ↳ javax.swing.plaf.metal.DefaultMetalTheme
       ↳ javax.swing.plaf.metal.OceanTheme

Class Overview

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.

Summary

Public Constructors
OceanTheme()
Creates an instance of OceanTheme
Public Methods
void addCustomEntriesToTable(UIDefaults table)
Add this theme's custom entries to the defaults table.
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 Methods
ColorUIResource getBlack()
Returns the black color.
ColorUIResource getPrimary1()
Returns the primary 1 color.
ColorUIResource getPrimary2()
Returns the primary 2 color.
ColorUIResource getPrimary3()
Returns the primary 3 color.
ColorUIResource getSecondary1()
Returns the secondary 1 color.
ColorUIResource getSecondary2()
Returns the secondary 2 color.
ColorUIResource getSecondary3()
Returns the secondary 3 color.
[Expand]
Inherited Methods
From class javax.swing.plaf.metal.DefaultMetalTheme
From class javax.swing.plaf.metal.MetalTheme
From class java.lang.Object

Public Constructors

public OceanTheme ()

Creates an instance of OceanTheme

Public Methods

public void addCustomEntriesToTable (UIDefaults table)

Add this theme's custom entries to the defaults table.

Parameters
table the defaults table, non-null
Throws
NullPointerException if table is null

public ColorUIResource getControlTextColor ()

Returns the control text color. This returns a color with an rgb hex value of 0x333333.

Returns
  • the control text color

public ColorUIResource getDesktopColor ()

Returns the desktop color. This returns a color with an rgb hex value of 0xFFFFFF.

Returns
  • the desktop color
See Also

public ColorUIResource getInactiveControlTextColor ()

Returns the inactive control text color. This returns a color with an rgb hex value of 0x999999.

Returns
  • the inactive control text color

public ColorUIResource getMenuDisabledForeground ()

Returns the menu disabled foreground color. This returns a color with an rgb hex value of 0x999999.

Returns
  • the menu disabled foreground color

public String getName ()

Return the name of this theme, "Ocean".

Returns
  • "Ocean"

Protected Methods

protected ColorUIResource getBlack ()

Returns the black color. This returns a color with an rgb hex value of 0x333333.

Returns
  • the black color
See Also

protected ColorUIResource getPrimary1 ()

Returns the primary 1 color. This returns a color with an rgb hex value of 0x6382BF.

Returns
  • the primary 1 color
See Also

protected ColorUIResource getPrimary2 ()

Returns the primary 2 color. This returns a color with an rgb hex value of 0xA3B8CC.

Returns
  • the primary 2 color
See Also

protected ColorUIResource getPrimary3 ()

Returns the primary 3 color. This returns a color with an rgb hex value of 0xB8CFE5.

Returns
  • the primary 3 color
See Also

protected ColorUIResource getSecondary1 ()

Returns the secondary 1 color. This returns a color with an rgb hex value of 0x7A8A99.

Returns
  • the secondary 1 color
See Also

protected ColorUIResource getSecondary2 ()

Returns the secondary 2 color. This returns a color with an rgb hex value of 0xB8CFE5.

Returns
  • the secondary 2 color
See Also

protected ColorUIResource getSecondary3 ()

Returns the secondary 3 color. This returns a color with an rgb hex value of 0xEEEEEE.

Returns
  • the secondary 3 color
See Also