javax.swing.plaf.metal
Class OceanTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
          extended by javax.swing.plaf.metal.OceanTheme
Direct Known Subclasses:
MetNetOceanTheme

public class OceanTheme
extends DefaultMetalTheme

A modern theme for the Metal Look & Feel.

Since:
1.5
Author:
Roman Kennke (roman@kennke.org)

Field Summary
(package private) static javax.swing.plaf.ColorUIResource BLACK
          The OceanTheme value for black.
(package private) static javax.swing.plaf.ColorUIResource INACTIVE_CONTROL_TEXT
          The OceanTheme value for inactive control text.
(package private) static javax.swing.plaf.ColorUIResource PRIMARY1
          The OceanTheme value for primary1.
(package private) static javax.swing.plaf.ColorUIResource PRIMARY2
          The OceanTheme value for primary1.
(package private) static javax.swing.plaf.ColorUIResource PRIMARY3
          The OceanTheme value for primary1.
(package private) static javax.swing.plaf.ColorUIResource SECONDARY1
          The OceanTheme value for secondary1.
(package private) static javax.swing.plaf.ColorUIResource SECONDARY2
          The OceanTheme value for secondary2.
(package private) static javax.swing.plaf.ColorUIResource SECONDARY3
          The OceanTheme value for secondary3.
 
Fields inherited from class javax.swing.plaf.metal.MetalTheme
white
 
Constructor Summary
OceanTheme()
           
 
Method Summary
 void addCustomEntriesToTable(javax.swing.UIDefaults defaults)
          Adds customized entries to the UIDefaults table.
protected  javax.swing.plaf.ColorUIResource getBlack()
          Returns the OceanTheme's color for black, the RGB value (51, 51, 51).
 javax.swing.plaf.ColorUIResource getControlTextColor()
          Returns the color for control text, which is the value of the theme's black value.
 javax.swing.plaf.ColorUIResource getDesktopColor()
          Returns the desktop color, which is the theme's white color.
 javax.swing.plaf.ColorUIResource getInactiveControlTextColor()
          Returns the color for inactive control text, which is the RGB value (153, 153, 153).
 javax.swing.plaf.ColorUIResource getMenuDisabledForeground()
          Returns the OceanTheme's color for disabled menu foreground,
 java.lang.String getName()
          Returns the name of this theme, "Ocean"
protected  javax.swing.plaf.ColorUIResource getPrimary1()
          Return the OceanTheme's value for primary 1, the RGB value (99, 130, 191).
protected  javax.swing.plaf.ColorUIResource getPrimary2()
          Return the OceanTheme's value for primary 2, the RGB value (163, 184, 204).
protected  javax.swing.plaf.ColorUIResource getPrimary3()
          Return the OceanTheme's value for primary 1, the RGB value (184, 207, 229).
protected  javax.swing.plaf.ColorUIResource getSecondary1()
          Return the OceanTheme's value for secondary 1, the RGB value (122, 138, 153).
protected  javax.swing.plaf.ColorUIResource getSecondary2()
          Return the OceanTheme's value for secondary 2, the RGB value (184, 207, 229).
protected  javax.swing.plaf.ColorUIResource getSecondary3()
          Return the OceanTheme's value for secondary 3, the RGB value (238, 238, 238).
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
, getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getFocusColor, getHighlightedTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, install, isSystemTheme
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLACK

static final javax.swing.plaf.ColorUIResource BLACK
The OceanTheme value for black.


PRIMARY1

static final javax.swing.plaf.ColorUIResource PRIMARY1
The OceanTheme value for primary1.


PRIMARY2

static final javax.swing.plaf.ColorUIResource PRIMARY2
The OceanTheme value for primary1.


PRIMARY3

static final javax.swing.plaf.ColorUIResource PRIMARY3
The OceanTheme value for primary1.


SECONDARY1

static final javax.swing.plaf.ColorUIResource SECONDARY1
The OceanTheme value for secondary1.


SECONDARY2

static final javax.swing.plaf.ColorUIResource SECONDARY2
The OceanTheme value for secondary2.


SECONDARY3

static final javax.swing.plaf.ColorUIResource SECONDARY3
The OceanTheme value for secondary3.


INACTIVE_CONTROL_TEXT

static final javax.swing.plaf.ColorUIResource INACTIVE_CONTROL_TEXT
The OceanTheme value for inactive control text.

Constructor Detail

OceanTheme

public OceanTheme()
Method Detail

getName

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

Overrides:
getName in class DefaultMetalTheme
Returns:
"Steel".

getControlTextColor

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

Overrides:
getControlTextColor in class javax.swing.plaf.metal.MetalTheme

getDesktopColor

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

Overrides:
getDesktopColor in class javax.swing.plaf.metal.MetalTheme

getInactiveControlTextColor

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

Overrides:
getInactiveControlTextColor in class javax.swing.plaf.metal.MetalTheme

getMenuDisabledForeground

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

Overrides:
getMenuDisabledForeground in class javax.swing.plaf.metal.MetalTheme

getBlack

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

Overrides:
getBlack in class javax.swing.plaf.metal.MetalTheme
Returns:
Returns the OceanTheme's value for black

getPrimary1

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

Overrides:
getPrimary1 in class DefaultMetalTheme
Returns:
The first primary color.

getPrimary2

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

Overrides:
getPrimary2 in class DefaultMetalTheme
Returns:
The second primary color.

getPrimary3

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

Overrides:
getPrimary3 in class DefaultMetalTheme
Returns:
The third primary color.

getSecondary1

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

Overrides:
getSecondary1 in class DefaultMetalTheme
Returns:
The first secondary color.

getSecondary2

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

Overrides:
getSecondary2 in class DefaultMetalTheme
Returns:
The second secondary color.

getSecondary3

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

Overrides:
getSecondary3 in class DefaultMetalTheme
Returns:
The third secondary color.

addCustomEntriesToTable

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

Overrides:
addCustomEntriesToTable in class javax.swing.plaf.metal.MetalTheme
Parameters:
defaults - the UI defaults table