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.
MetalLookAndFeel#setCurrentTheme
Modifier and Type | Class and Description |
---|---|
private static class | |
private static class |
Modifier and Type | Field and Description |
---|---|
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource | |
private static final ColorUIResource |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | addCustomEntriesToTable(UIDefaults
the defaults table, non-null table)Overrides javax. Add this theme's custom entries to the defaults table. |
protected ColorUIResource | Returns: the black colorOverrides javax. Returns the black color. |
public ColorUIResource | Returns: the control text colorOverrides javax. Returns the control text color. |
public ColorUIResource | Returns: the desktop colorOverrides javax. Returns the desktop color. |
private Icon | |
private Object | |
public ColorUIResource | Returns: the inactive control text colorOverrides javax. Returns the inactive control text color. |
public ColorUIResource | Returns: the menu disabled foreground colorOverrides javax. Returns the menu disabled foreground color. |
public String | Returns: "Ocean"Overrides javax. Return the name of this theme, "Ocean". |
protected ColorUIResource | Returns: the primary 1 colorOverrides javax. Returns the primary 1 color. |
protected ColorUIResource | Returns: the primary 2 colorOverrides javax. Returns the primary 2 color. |
protected ColorUIResource | Returns: the primary 3 colorOverrides javax. Returns the primary 3 color. |
protected ColorUIResource | Returns: the secondary 1 colorOverrides javax. Returns the secondary 1 color. |
protected ColorUIResource | Returns: the secondary 2 colorOverrides javax. Returns the secondary 2 color. |
protected ColorUIResource | Returns: the secondary 3 colorOverrides javax. Returns the secondary 3 color. |
pack-priv boolean | isSystemTheme()
Overrides javax. Overridden to enable picking up the system fonts, if applicable. |
CONTROL_TEXT_COLOR | back to summary |
---|---|
private static final ColorUIResource CONTROL_TEXT_COLOR |
INACTIVE_CONTROL_TEXT_COLOR | back to summary |
---|---|
private static final ColorUIResource INACTIVE_CONTROL_TEXT_COLOR |
MENU_DISABLED_FOREGROUND | back to summary |
---|---|
private static final ColorUIResource MENU_DISABLED_FOREGROUND |
OCEAN_BLACK | back to summary |
---|---|
private static final ColorUIResource OCEAN_BLACK |
OCEAN_DROP | back to summary |
---|---|
private static final ColorUIResource OCEAN_DROP |
PRIMARY1 | back to summary |
---|---|
private static final ColorUIResource PRIMARY1 |
PRIMARY2 | back to summary |
---|---|
private static final ColorUIResource PRIMARY2 |
PRIMARY3 | back to summary |
---|---|
private static final ColorUIResource PRIMARY3 |
SECONDARY1 | back to summary |
---|---|
private static final ColorUIResource SECONDARY1 |
SECONDARY2 | back to summary |
---|---|
private static final ColorUIResource SECONDARY2 |
SECONDARY3 | back to summary |
---|---|
private static final ColorUIResource SECONDARY3 |
OceanTheme | back to summary |
---|---|
public OceanTheme() Creates an instance of |
addCustomEntriesToTable | back to summary |
---|---|
public void addCustomEntriesToTable(UIDefaults table) Overrides javax. Add this theme's custom entries to the defaults table.
|
getBlack | back to summary |
---|---|
protected ColorUIResource getBlack() Overrides javax. Returns the black color. This returns a color with an rgb hex
value of
|
getControlTextColor | back to summary |
---|---|
public ColorUIResource getControlTextColor() Overrides javax. Returns the control text color. This returns a color with an
rgb hex value of
|
getDesktopColor | back to summary |
---|---|
public ColorUIResource getDesktopColor() Overrides javax. Returns the desktop color. This returns a color with an rgb hex
value of
|
getHastenedIcon | back to summary |
---|---|
private Icon getHastenedIcon(String iconID, UIDefaults table) |
getIconResource | back to summary |
---|---|
private Object getIconResource(String iconID) |
getInactiveControlTextColor | back to summary |
---|---|
public ColorUIResource getInactiveControlTextColor() Overrides javax. Returns the inactive control text color. This returns a color with an
rgb hex value of
|
getMenuDisabledForeground | back to summary |
---|---|
public ColorUIResource getMenuDisabledForeground() Overrides javax. Returns the menu disabled foreground color. This returns a color with an
rgb hex value of
|
getName | back to summary |
---|---|
public String getName() Overrides javax. Return the name of this theme, "Ocean".
|
getPrimary1 | back to summary |
---|---|
protected ColorUIResource getPrimary1() Overrides javax. Returns the primary 1 color. This returns a color with an rgb hex value
of
|
getPrimary2 | back to summary |
---|---|
protected ColorUIResource getPrimary2() Overrides javax. Returns the primary 2 color. This returns a color with an rgb hex value
of
|
getPrimary3 | back to summary |
---|---|
protected ColorUIResource getPrimary3() Overrides javax. Returns the primary 3 color. This returns a color with an rgb hex value
of
|
getSecondary1 | back to summary |
---|---|
protected ColorUIResource getSecondary1() Overrides javax. Returns the secondary 1 color. This returns a color with an rgb hex
value of
|
getSecondary2 | back to summary |
---|---|
protected ColorUIResource getSecondary2() Overrides javax. Returns the secondary 2 color. This returns a color with an rgb hex
value of
|
getSecondary3 | back to summary |
---|---|
protected ColorUIResource getSecondary3() Overrides javax. Returns the secondary 3 color. This returns a color with an rgb hex
value of
|
isSystemTheme | back to summary |
---|---|
pack-priv boolean isSystemTheme() Overrides javax. Overridden to enable picking up the system fonts, if applicable. |
Modifier and Type | Method and Description |
---|---|
public void | paintIcon(Component
a c, Graphics Component to get properties useful for paintingthe graphics context g, int the X coordinate of the icon's top-left corner x, int the Y coordinate of the icon's top-left corner y)Overrides javax. Implements javax. Draw the icon at the specified location. |
rtl | back to summary |
---|---|
private Icon rtl |
COIcon | back to summary |
---|---|
public COIcon(Icon ltr, Icon rtl) |
paintIcon | back to summary |
---|---|
public void paintIcon(Component c, Graphics g, int x, int y) Overrides javax. Implements javax. Doc from javax. Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color. |
Modifier and Type | Method and Description |
---|---|
public void | paintIcon(Component
a c, Graphics Component to get properties useful for paintingthe graphics context g, int the X coordinate of the icon's top-left corner x, int the Y coordinate of the icon's top-left corner y)Overrides javax. Implements javax. Draw the icon at the specified location. |
pressed | back to summary |
---|---|
private Icon pressed |
IFIcon | back to summary |
---|---|
public IFIcon(Icon normal, Icon pressed) |
paintIcon | back to summary |
---|---|
public void paintIcon(Component c, Graphics g, int x, int y) Overrides javax. Implements javax. Doc from javax. Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color. |