Class OceanTheme
java.lang.Object
javax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
javax.swing.plaf.metal.OceanTheme
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.
- Since:
- 1.5
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd this theme's custom entries to the defaults table.protected ColorUIResourcegetBlack()Returns the black color.Returns the control text color.Returns the desktop color.Returns the inactive control text color.Returns the menu disabled foreground color.getName()Return the name of this theme, "Ocean".protected ColorUIResourceReturns the primary 1 color.protected ColorUIResourceReturns the primary 2 color.protected ColorUIResourceReturns the primary 3 color.protected ColorUIResourceReturns the secondary 1 color.protected ColorUIResourceReturns the secondary 2 color.protected ColorUIResourceReturns the secondary 3 color.Methods declared in class DefaultMetalTheme
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFontModifier and TypeMethodDescriptionReturns the control text font.Returns the menu text font.Returns the sub-text font.Returns the system text font.Returns the user text font.Returns the window title font.Methods declared in class 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, getWindowTitleInactiveForegroundModifier and TypeMethodDescriptionReturns the accelerator foreground color.Returns the accelerator selected foreground color.Returns the control color.Returns the control dark shadow color.Returns the control disabled color.Returns the control highlight color.Returns the control info color.Returns the control shadow color.Returns the focus color.Returns the highlighted text color.Returns the inactive system text color.Returns the menu background color.Returns the menu foreground color.Returns the menu selected background color.Returns the menu selected foreground color.Returns the primary control color.Returns the primary control dark shadow color.Returns the primary control highlight color.Returns the primary control info color.Returns the primary control shadow color.Returns the separator background color.Returns the separator foreground color.Returns the system text color.Returns the text highlight color.Returns the user text color.protected ColorUIResourcegetWhite()Returns the white color.Returns the window background color.Returns the window title background color.Returns the window title foreground color.Returns the window title inactive background color.Returns the window title inactive foreground color.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
OceanTheme
public OceanTheme()Creates an instance ofOceanTheme
-
-
Method Details
-
addCustomEntriesToTable
Add this theme's custom entries to the defaults table.- Overrides:
addCustomEntriesToTablein classMetalTheme- Parameters:
table- the defaults table, non-null- Throws:
NullPointerException- iftableisnull- See Also:
-
getName
Return the name of this theme, "Ocean".- Overrides:
getNamein classDefaultMetalTheme- Returns:
- "Ocean"
-
getPrimary1
Returns the primary 1 color. This returns a color with an rgb hex value of0x6382BF.- Overrides:
getPrimary1in classDefaultMetalTheme- Returns:
- the primary 1 color
- See Also:
-
getPrimary2
Returns the primary 2 color. This returns a color with an rgb hex value of0xA3B8CC.- Overrides:
getPrimary2in classDefaultMetalTheme- Returns:
- the primary 2 color
- See Also:
-
getPrimary3
Returns the primary 3 color. This returns a color with an rgb hex value of0xB8CFE5.- Overrides:
getPrimary3in classDefaultMetalTheme- Returns:
- the primary 3 color
- See Also:
-
getSecondary1
Returns the secondary 1 color. This returns a color with an rgb hex value of0x7A8A99.- Overrides:
getSecondary1in classDefaultMetalTheme- Returns:
- the secondary 1 color
- See Also:
-
getSecondary2
Returns the secondary 2 color. This returns a color with an rgb hex value of0xB8CFE5.- Overrides:
getSecondary2in classDefaultMetalTheme- Returns:
- the secondary 2 color
- See Also:
-
getSecondary3
Returns the secondary 3 color. This returns a color with an rgb hex value of0xEEEEEE.- Overrides:
getSecondary3in classDefaultMetalTheme- Returns:
- the secondary 3 color
- See Also:
-
getBlack
Returns the black color. This returns a color with an rgb hex value of0x333333.- Overrides:
getBlackin classMetalTheme- Returns:
- the black color
- See Also:
-
getDesktopColor
Returns the desktop color. This returns a color with an rgb hex value of0xFFFFFF.- Overrides:
getDesktopColorin classMetalTheme- Returns:
- the desktop color
- See Also:
-
getInactiveControlTextColor
Returns the inactive control text color. This returns a color with an rgb hex value of0x999999.- Overrides:
getInactiveControlTextColorin classMetalTheme- Returns:
- the inactive control text color
-
getControlTextColor
Returns the control text color. This returns a color with an rgb hex value of0x333333.- Overrides:
getControlTextColorin classMetalTheme- Returns:
- the control text color
-
getMenuDisabledForeground
Returns the menu disabled foreground color. This returns a color with an rgb hex value of0x999999.- Overrides:
getMenuDisabledForegroundin classMetalTheme- Returns:
- the menu disabled foreground color
-