TopBlend: Here is the first difference. There are 39 differences. is old. is new.


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

public class OceanTheme
extends DefaultMetalTheme

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.

Since:
1.5
See Also:
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)

Constructor Summary
OceanTheme ()
          Creates           Construct an instance of OceanTheme
 
Method Summary
 void addCustomEntriesToTable ( UIDefaults  table)
          Add this theme's custom entries to the defaults table.
protected   ColorUIResource getBlack ()
          Returns           Return the black color. color that the Metal Look and Feel should use as "Black".
  ColorUIResource getControlTextColor ()
          Returns           Return the control text color. color that the Metal Look and Feel should use as the default color for controls.
  ColorUIResource getDesktopColor ()
          Returns           Return the color that the Metal Look and Feel should use for the desktop color. background.
  ColorUIResource getInactiveControlTextColor ()
          Returns           Return the color that the Metal Look and Feel should use as the default color for inactive control text color. controls.
  ColorUIResource getMenuDisabledForeground ()
          Returns           Return the color that the Metal Look and Feel should use as the foreground color for disabled menu disabled foreground color. items.
  String getName ()
          Return the name of this theme, "Ocean".
protected   ColorUIResource getPrimary1 ()
          Returns           Return the primary 1 color. color that the Metal Look and Feel should use as "Primary 1".
protected   ColorUIResource getPrimary2 ()
          Returns           Return the primary 2 color. color that the Metal Look and Feel should use as "Primary 2".
protected   ColorUIResource getPrimary3 ()
          Returns           Return the primary 3 color. color that the Metal Look and Feel should use as "Primary 3".
protected   ColorUIResource getSecondary1 ()
          Returns           Return the secondary 1 color. color that the Metal Look and Feel should use as "Secondary 1".
protected   ColorUIResource getSecondary2 ()
          Returns           Return the secondary 2 color. color that the Metal Look and Feel should use as "Secondary 2".
protected   ColorUIResource getSecondary3 ()
          Returns           Return the secondary 3 color. color that the Metal Look and Feel should use as "Secondary 3".
 
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
 
Methods inherited from class java.lang. Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

Constructor Detail

OceanTheme


public OceanTheme()
Creates Construct an instance of OceanTheme

Method Detail

addCustomEntriesToTable


public void addCustomEntriesToTable(UIDefaults table)
Add this theme's custom entries to the defaults table.

Overrides:
addCustomEntriesToTable in class MetalTheme
Parameters:
table - the defaults table, non-null
Throws:
NullPointerException - if table is null
See Also:
MetalLookAndFeel.getDefaults() - if the parameter is null

getName


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

Overrides:
getName in class DefaultMetalTheme
Returns:
"Ocean"

getPrimary1


protected ColorUIResource getPrimary1()
Returns the primary 1 color. This returns a color with an rgb hex value of 0x6382BF. Return the color that the Metal Look and Feel should use as "Primary 1". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getPrimary1 in class DefaultMetalTheme
Returns:
the primary 1 color
See Also:
Color.decode(java.lang.String) the "Primary 1" color.

getPrimary2


protected ColorUIResource getPrimary2()
Returns the primary 2 color. This returns a color with an rgb hex value of 0xA3B8CC. Return the color that the Metal Look and Feel should use as "Primary 2". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getPrimary2 in class DefaultMetalTheme
Returns:
the primary 2 color
See Also:
Color.decode(java.lang.String) the "Primary 2" color.

getPrimary3


protected ColorUIResource getPrimary3()
Returns the primary 3 color. This returns a color with an rgb hex value of 0xB8CFE5. Return the color that the Metal Look and Feel should use as "Primary 3". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getPrimary3 in class DefaultMetalTheme
Returns:
the primary 3 color
See Also:
Color.decode(java.lang.String) the "Primary 3" color.

getSecondary1


protected ColorUIResource getSecondary1()
Returns the secondary 1 color. This returns a color with an rgb hex value of 0x7A8A99. Return the color that the Metal Look and Feel should use as "Secondary 1". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getSecondary1 in class DefaultMetalTheme
Returns:
the secondary 1 color
See Also:
Color.decode(java.lang.String) the "Secondary 1" color.

getSecondary2


protected ColorUIResource getSecondary2()
Returns the secondary 2 color. This returns a color with an rgb hex value of 0xB8CFE5. Return the color that the Metal Look and Feel should use as "Secondary 2". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getSecondary2 in class DefaultMetalTheme
Returns:
the secondary 2 color
See Also:
Color.decode(java.lang.String) the "Secondary 2" color.

getSecondary3


protected ColorUIResource getSecondary3()
Returns the secondary 3 color. This returns a color with an rgb hex value of 0xEEEEEE. Return the color that the Metal Look and Feel should use as "Secondary 3". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getSecondary3 in class DefaultMetalTheme
Returns:
the secondary 3 color
See Also:
Color.decode(java.lang.String) the "Secondary 3" color.

getBlack


protected ColorUIResource getBlack()
Returns the black color. This returns a color with an rgb hex value of 0x333333. Return the color that the Metal Look and Feel should use as "Black". The Look and Feel will use this color in painting as it sees fit. This color does not necessarily synch up with the typical concept of black, nor is it necessarily used for all black items.

Overrides:
getBlack in class MetalTheme
Returns:
the black color
See Also:
Color.decode(java.lang.String) the "Black" color.

getDesktopColor


public ColorUIResource getDesktopColor()
Returns the desktop color. This returns a color with an rgb hex value of 0xFFFFFF. Return the color that the Metal Look and Feel should use for the desktop background. The Look and Feel will use this color in painting as it sees fit.

Overrides:
getDesktopColor in class MetalTheme
Returns:
the desktop color
See Also:
Color.decode(java.lang.String) the "Desktop" color.

getInactiveControlTextColor


public ColorUIResource getInactiveControlTextColor()
Returns the inactive control text color. This returns a color with an rgb hex value of 0x999999. Return the color that the Metal Look and Feel should use as the default color for inactive controls. The Look and Feel will use this color in painting as it sees fit.

Overrides:
getInactiveControlTextColor in class MetalTheme
Returns:
the inactive control text color the "Inactive Control Text" color.

getControlTextColor


public ColorUIResource getControlTextColor()
Returns the control text color. This returns a color with an rgb hex value of 0x333333. Return the color that the Metal Look and Feel should use as the default color for controls. The Look and Feel will use this color in painting as it sees fit.

Overrides:
getControlTextColor in class MetalTheme
Returns:
the control text color the "Control Text" color.

getMenuDisabledForeground


public ColorUIResource getMenuDisabledForeground()
Returns the menu disabled foreground color. This returns a color with an rgb hex value of 0x999999. Return the color that the Metal Look and Feel should use as the foreground color for disabled menu items. The Look and Feel will use this color in painting as it sees fit.

Overrides:
getMenuDisabledForeground in class MetalTheme
Returns:
the menu disabled foreground color the "Menu Disabled Foreground" color.