javax.swing.plaf.metal

Class OceanTheme


public class OceanTheme
extends DefaultMetalTheme

A modern theme for the Metal Look & Feel.
Since:
1.5

Method Summary

void
addCustomEntriesToTable(UIDefaults defaults)
Adds customized entries to the UIDefaults table.
protected ColorUIResource
getBlack()
Returns the OceanTheme's color for black, the RGB value (51, 51, 51).
ColorUIResource
getControlTextColor()
Returns the color for control text, which is the value of the theme's black value.
ColorUIResource
getDesktopColor()
Returns the desktop color, which is the theme's white color.
ColorUIResource
getInactiveControlTextColor()
Returns the color for inactive control text, which is the RGB value (153, 153, 153).
ColorUIResource
getMenuDisabledForeground()
Returns the OceanTheme's color for disabled menu foreground,
String
getName()
Returns the name of this theme, "Ocean"
protected ColorUIResource
getPrimary1()
Return the OceanTheme's value for primary 1, the RGB value (99, 130, 191).
protected ColorUIResource
getPrimary2()
Return the OceanTheme's value for primary 2, the RGB value (163, 184, 204).
protected ColorUIResource
getPrimary3()
Return the OceanTheme's value for primary 1, the RGB value (184, 207, 229).
protected ColorUIResource
getSecondary1()
Return the OceanTheme's value for secondary 1, the RGB value (122, 138, 153).
protected ColorUIResource
getSecondary2()
Return the OceanTheme's value for secondary 2, the RGB value (184, 207, 229).
protected ColorUIResource
getSecondary3()
Return the OceanTheme's value for secondary 3, the RGB value (238, 238, 238).

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, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults defaults)
Adds customized entries to the UIDefaults table.
Overrides:
addCustomEntriesToTable in interface MetalTheme
Parameters:
defaults - the UI defaults table

getBlack

protected ColorUIResource getBlack()
Returns the OceanTheme's color for black, the RGB value (51, 51, 51).
Overrides:
getBlack in interface MetalTheme
Returns:
Returns the OceanTheme's value for black

getControlTextColor

public ColorUIResource getControlTextColor()
Returns the color for control text, which is the value of the theme's black value.
Overrides:
getControlTextColor in interface MetalTheme

getDesktopColor

public ColorUIResource getDesktopColor()
Returns the desktop color, which is the theme's white color.
Overrides:
getDesktopColor in interface MetalTheme

getInactiveControlTextColor

public ColorUIResource getInactiveControlTextColor()
Returns the color for inactive control text, which is the RGB value (153, 153, 153).
Overrides:
getInactiveControlTextColor in interface MetalTheme

getMenuDisabledForeground

public ColorUIResource getMenuDisabledForeground()
Returns the OceanTheme's color for disabled menu foreground,
Overrides:
getMenuDisabledForeground in interface MetalTheme

getName

public String getName()
Returns the name of this theme, "Ocean"
Overrides:
getName in interface DefaultMetalTheme

getPrimary1

protected ColorUIResource getPrimary1()
Return the OceanTheme's value for primary 1, the RGB value (99, 130, 191).
Overrides:
getPrimary1 in interface DefaultMetalTheme

getPrimary2

protected ColorUIResource getPrimary2()
Return the OceanTheme's value for primary 2, the RGB value (163, 184, 204).
Overrides:
getPrimary2 in interface DefaultMetalTheme

getPrimary3

protected ColorUIResource getPrimary3()
Return the OceanTheme's value for primary 1, the RGB value (184, 207, 229).
Overrides:
getPrimary3 in interface DefaultMetalTheme

getSecondary1

protected ColorUIResource getSecondary1()
Return the OceanTheme's value for secondary 1, the RGB value (122, 138, 153).
Overrides:
getSecondary1 in interface DefaultMetalTheme

getSecondary2

protected ColorUIResource getSecondary2()
Return the OceanTheme's value for secondary 2, the RGB value (184, 207, 229).
Overrides:
getSecondary2 in interface DefaultMetalTheme

getSecondary3

protected ColorUIResource getSecondary3()
Return the OceanTheme's value for secondary 3, the RGB value (238, 238, 238).
Overrides:
getSecondary3 in interface DefaultMetalTheme

DefaultMetalTheme.java -- A modern theme for the Metal L&F Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.