This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


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 {@code 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 {@code OceanTheme} are completely opaque.


Constructor Summary

          Creates an instance of OceanTheme
 
Method Summary
 void

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

          Returns the black color.
 ColorUIResource

          Returns the control text color.
 ColorUIResource

          Returns the desktop color.
 ColorUIResource

          Returns the inactive control text color.
 ColorUIResource

          Returns the menu disabled foreground color.
 String

          Return the name of this theme, "Ocean".
protected ColorUIResource

          Returns the primary 1 color.
protected ColorUIResource

          Returns the primary 2 color.
protected ColorUIResource

          Returns the primary 3 color.
protected ColorUIResource

          Returns the secondary 1 color.
protected ColorUIResource

          Returns the secondary 2 color.
protected ColorUIResource

          Returns the secondary 3 color.
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getControlTextFont, getMenuTextFont, getName, getPrimary1, getPrimary2, getPrimary3, getSecondary1, getSecondary2, getSecondary3, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getName, getPrimary1, getPrimary2, getPrimary3, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSecondary1, getSecondary2, getSecondary3, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleFont, 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 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

getBlack

protected ColorUIResource getBlack()
Returns the black color. This returns a color with an rgb hex value of {@code 0x333333}.

Overrides:
getBlack in class MetalTheme
Returns:
the black color

getControlTextColor

public ColorUIResource getControlTextColor()
Returns the control text color. This returns a color with an rgb hex value of {@code 0x333333}.

Overrides:
getControlTextColor in class MetalTheme
Returns:
the control text color

getDesktopColor

public ColorUIResource getDesktopColor()
Returns the desktop color. This returns a color with an rgb hex value of {@code 0xFFFFFF}.

Overrides:
getDesktopColor in class MetalTheme
Returns:
the desktop color

getInactiveControlTextColor

public ColorUIResource getInactiveControlTextColor()
Returns the inactive control text color. This returns a color with an rgb hex value of {@code 0x999999}.

Overrides:
getInactiveControlTextColor in class MetalTheme
Returns:
the inactive control text color

getMenuDisabledForeground

public ColorUIResource getMenuDisabledForeground()
Returns the menu disabled foreground color. This returns a color with an rgb hex value of {@code 0x999999}.

Overrides:
getMenuDisabledForeground in class MetalTheme
Returns:
the menu disabled foreground color

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 {@code 0x6382BF}.

Overrides:
getPrimary1 in class DefaultMetalTheme
Returns:
the primary 1 color

getPrimary2

protected ColorUIResource getPrimary2()
Returns the primary 2 color. This returns a color with an rgb hex value of {@code 0xA3B8CC}.

Overrides:
getPrimary2 in class DefaultMetalTheme
Returns:
the primary 2 color

getPrimary3

protected ColorUIResource getPrimary3()
Returns the primary 3 color. This returns a color with an rgb hex value of {@code 0xB8CFE5}.

Overrides:
getPrimary3 in class DefaultMetalTheme
Returns:
the primary 3 color

getSecondary1

protected ColorUIResource getSecondary1()
Returns the secondary 1 color. This returns a color with an rgb hex value of {@code 0x7A8A99}.

Overrides:
getSecondary1 in class DefaultMetalTheme
Returns:
the secondary 1 color

getSecondary2

protected ColorUIResource getSecondary2()
Returns the secondary 2 color. This returns a color with an rgb hex value of {@code 0xB8CFE5}.

Overrides:
getSecondary2 in class DefaultMetalTheme
Returns:
the secondary 2 color

getSecondary3

protected ColorUIResource getSecondary3()
Returns the secondary 3 color. This returns a color with an rgb hex value of {@code 0xEEEEEE}.

Overrides:
getSecondary3 in class DefaultMetalTheme
Returns:
the secondary 3 color


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.