- java.lang.Object
- 
- javax.swing.plaf.metal.MetalTheme
- 
- javax.swing.plaf.metal.DefaultMetalTheme
- 
- javax.swing.plaf.metal.OceanTheme
 
 
 
- 
 public class OceanTheme extends DefaultMetalTheme The default theme for theMetalLookAndFeel.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 OceanThemeare completely opaque.- Since:
- 1.5
- See Also:
- MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)
 
- 
- 
Constructor SummaryConstructors Constructor Description OceanTheme()Creates an instance ofOceanTheme
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomEntriesToTable(UIDefaults table)Add this theme's custom entries to the defaults table.protected ColorUIResourcegetBlack()Returns the black color.ColorUIResourcegetControlTextColor()Returns the control text color.ColorUIResourcegetDesktopColor()Returns the desktop color.ColorUIResourcegetInactiveControlTextColor()Returns the inactive control text color.ColorUIResourcegetMenuDisabledForeground()Returns the menu disabled foreground color.StringgetName()Return the name of this theme, "Ocean".protected ColorUIResourcegetPrimary1()Returns the primary 1 color.protected ColorUIResourcegetPrimary2()Returns the primary 2 color.protected ColorUIResourcegetPrimary3()Returns the primary 3 color.protected ColorUIResourcegetSecondary1()Returns the secondary 1 color.protected ColorUIResourcegetSecondary2()Returns the secondary 2 color.protected ColorUIResourcegetSecondary3()Returns the secondary 3 color.- 
Methods declared in class javax.swing.plaf.metal.DefaultMetalThemegetControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont
 - 
Methods declared in class javax.swing.plaf.metal.MetalThemegetAcceleratorForeground, 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
 
- 
 
- 
- 
- 
Method Detail- 
addCustomEntriesToTablepublic void addCustomEntriesToTable(UIDefaults table) Add this theme's custom entries to the defaults table.- Overrides:
- addCustomEntriesToTablein class- MetalTheme
- Parameters:
- table- the defaults table, non-null
- Throws:
- NullPointerException- if- tableis- null
- See Also:
- MetalLookAndFeel.getDefaults()
 
 - 
getNamepublic String getName() Return the name of this theme, "Ocean".- Overrides:
- getNamein class- DefaultMetalTheme
- Returns:
- "Ocean"
 
 - 
getPrimary1protected ColorUIResource getPrimary1() Returns the primary 1 color. This returns a color with an rgb hex value of0x6382BF.- Overrides:
- getPrimary1in class- DefaultMetalTheme
- Returns:
- the primary 1 color
- See Also:
- Color.decode(java.lang.String)
 
 - 
getPrimary2protected ColorUIResource getPrimary2() Returns the primary 2 color. This returns a color with an rgb hex value of0xA3B8CC.- Overrides:
- getPrimary2in class- DefaultMetalTheme
- Returns:
- the primary 2 color
- See Also:
- Color.decode(java.lang.String)
 
 - 
getPrimary3protected ColorUIResource getPrimary3() Returns the primary 3 color. This returns a color with an rgb hex value of0xB8CFE5.- Overrides:
- getPrimary3in class- DefaultMetalTheme
- Returns:
- the primary 3 color
- See Also:
- Color.decode(java.lang.String)
 
 - 
getSecondary1protected ColorUIResource getSecondary1() Returns the secondary 1 color. This returns a color with an rgb hex value of0x7A8A99.- Overrides:
- getSecondary1in class- DefaultMetalTheme
- Returns:
- the secondary 1 color
- See Also:
- Color.decode(java.lang.String)
 
 - 
getSecondary2protected ColorUIResource getSecondary2() Returns the secondary 2 color. This returns a color with an rgb hex value of0xB8CFE5.- Overrides:
- getSecondary2in class- DefaultMetalTheme
- Returns:
- the secondary 2 color
- See Also:
- Color.decode(java.lang.String)
 
 - 
getSecondary3protected ColorUIResource getSecondary3() Returns the secondary 3 color. This returns a color with an rgb hex value of0xEEEEEE.- Overrides:
- getSecondary3in class- DefaultMetalTheme
- Returns:
- the secondary 3 color
- See Also:
- Color.decode(java.lang.String)
 
 - 
getBlackprotected ColorUIResource getBlack() Returns the black color. This returns a color with an rgb hex value of0x333333.- Overrides:
- getBlackin class- MetalTheme
- Returns:
- the black color
- See Also:
- Color.decode(java.lang.String)
 
 - 
getDesktopColorpublic ColorUIResource getDesktopColor() Returns the desktop color. This returns a color with an rgb hex value of0xFFFFFF.- Overrides:
- getDesktopColorin class- MetalTheme
- Returns:
- the desktop color
- See Also:
- Color.decode(java.lang.String)
 
 - 
getInactiveControlTextColorpublic ColorUIResource getInactiveControlTextColor() Returns the inactive control text color. This returns a color with an rgb hex value of0x999999.- Overrides:
- getInactiveControlTextColorin class- MetalTheme
- Returns:
- the inactive control text color
 
 - 
getControlTextColorpublic ColorUIResource getControlTextColor() Returns the control text color. This returns a color with an rgb hex value of0x333333.- Overrides:
- getControlTextColorin class- MetalTheme
- Returns:
- the control text color
 
 - 
getMenuDisabledForegroundpublic ColorUIResource getMenuDisabledForeground() Returns the menu disabled foreground color. This returns a color with an rgb hex value of0x999999.- Overrides:
- getMenuDisabledForegroundin class- MetalTheme
- Returns:
- the menu disabled foreground color
 
 
- 
 
-