Class OceanTheme
public class OceanTheme extends DefaultMetalTheme
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
| Constructor | Description |
|---|---|
OceanTheme() |
Creates an instance of OceanTheme
|
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
void |
addCustomEntriesToTable |
Add this theme's custom entries to the defaults table. |
protected ColorUIResource |
getBlack() |
Returns the black color. |
ColorUIResource |
getControlTextColor() |
Returns the control text color. |
ColorUIResource |
getDesktopColor() |
Returns the desktop color. |
ColorUIResource |
getInactiveControlTextColor() |
Returns the inactive control text color. |
ColorUIResource |
getMenuDisabledForeground() |
Returns the menu disabled foreground color. |
String |
getName() |
Return the name of this theme, "Ocean". |
protected ColorUIResource |
getPrimary1() |
Returns the primary 1 color. |
protected ColorUIResource |
getPrimary2() |
Returns the primary 2 color. |
protected ColorUIResource |
getPrimary3() |
Returns the primary 3 color. |
protected ColorUIResource |
getSecondary1() |
Returns the secondary 1 color. |
protected ColorUIResource |
getSecondary2() |
Returns the secondary 2 color. |
protected ColorUIResource |
getSecondary3() |
Returns the secondary 3 color. |
Methods declared in class javax.swing.plaf.metal.DefaultMetalTheme
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont
Methods declared in 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
Constructor Details
OceanTheme
public OceanTheme()
OceanTheme
Method Details
addCustomEntriesToTable
public void addCustomEntriesToTable(UIDefaults table)
- Overrides:
-
addCustomEntriesToTablein classMetalTheme - Parameters:
-
table- the defaults table, non-null - Throws:
-
NullPointerException- iftableisnull - See Also:
getName
public String getName()
- Overrides:
-
getNamein classDefaultMetalTheme - Returns:
- "Ocean"
getPrimary1
protected ColorUIResource getPrimary1()
0x6382BF.- Overrides:
-
getPrimary1in classDefaultMetalTheme - Returns:
- the primary 1 color
- See Also:
getPrimary2
protected ColorUIResource getPrimary2()
0xA3B8CC.- Overrides:
-
getPrimary2in classDefaultMetalTheme - Returns:
- the primary 2 color
- See Also:
getPrimary3
protected ColorUIResource getPrimary3()
0xB8CFE5.- Overrides:
-
getPrimary3in classDefaultMetalTheme - Returns:
- the primary 3 color
- See Also:
getSecondary1
protected ColorUIResource getSecondary1()
0x7A8A99.- Overrides:
-
getSecondary1in classDefaultMetalTheme - Returns:
- the secondary 1 color
- See Also:
getSecondary2
protected ColorUIResource getSecondary2()
0xB8CFE5.- Overrides:
-
getSecondary2in classDefaultMetalTheme - Returns:
- the secondary 2 color
- See Also:
getSecondary3
protected ColorUIResource getSecondary3()
0xEEEEEE.- Overrides:
-
getSecondary3in classDefaultMetalTheme - Returns:
- the secondary 3 color
- See Also:
getBlack
protected ColorUIResource getBlack()
0x333333.- Overrides:
-
getBlackin classMetalTheme - Returns:
- the black color
- See Also:
getDesktopColor
public ColorUIResource getDesktopColor()
0xFFFFFF.- Overrides:
-
getDesktopColorin classMetalTheme - Returns:
- the desktop color
- See Also:
getInactiveControlTextColor
public ColorUIResource getInactiveControlTextColor()
0x999999.- Overrides:
-
getInactiveControlTextColorin classMetalTheme - Returns:
- the inactive control text color
getControlTextColor
public ColorUIResource getControlTextColor()
0x333333.- Overrides:
-
getControlTextColorin classMetalTheme - Returns:
- the control text color
getMenuDisabledForeground
public ColorUIResource getMenuDisabledForeground()
0x999999.- Overrides:
-
getMenuDisabledForegroundin classMetalTheme - Returns:
- the menu disabled foreground color
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/plaf/metal/OceanTheme.html