org.jvnet.substance.theme
Class SubstanceTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
          extended by javax.swing.plaf.metal.OceanTheme
              extended by org.jvnet.substance.theme.SubstanceTheme
Direct Known Subclasses:
SubstanceAquaTheme, SubstanceBrownTheme, SubstanceLightAquaTheme, SubstanceLimeGreenTheme, SubstanceOliveTheme, SubstanceOrangeTheme, SubstancePurpleTheme, SubstanceSepiaTheme, SubstanceSteelBlueTheme, SubstanceSunGlareTheme, SubstanceSunsetTheme, SubstanceTerracottaTheme

public class SubstanceTheme
extends OceanTheme

Theme for Substance look and feel.

Author:
Kirill Grouchnikov

Field Summary
protected static String commonDir
          Common directory for Quaqua images.
 
Constructor Summary
protected SubstanceTheme(ColorSchemeEnum colorSchemeEnum)
          Simple constructor.
 
Method Summary
 void addCustomEntriesToTable(UIDefaults table)
           
 ColorSchemeEnum getColorSchemeEnum()
          Returns the color scheme enum of the current theme.
protected  ColorUIResource getPrimary1()
           
protected  ColorUIResource getPrimary2()
           
protected  ColorUIResource getPrimary3()
           
protected  ColorUIResource getSecondary1()
           
protected  ColorUIResource getSecondary2()
           
protected  ColorUIResource getSecondary3()
           
 String getThemeName()
          Returns the name of the current theme.
 
Methods inherited from class javax.swing.plaf.metal.OceanTheme
getBlack, getControlTextColor, getDesktopColor, getInactiveControlTextColor, getMenuDisabledForeground, getName
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont
 
Methods inherited from 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commonDir

protected static final String commonDir
Common directory for Quaqua images.

See Also:
Constant Field Values
Constructor Detail

SubstanceTheme

protected SubstanceTheme(ColorSchemeEnum colorSchemeEnum)
Simple constructor. Made private to prevent direct instantiation in client code.

Parameters:
colorSchemeEnum - Color scheme enum for this theme.
Method Detail

getColorSchemeEnum

public ColorSchemeEnum getColorSchemeEnum()
Returns the color scheme enum of the current theme.

Returns:
Color scheme enum of the current theme.

getThemeName

public String getThemeName()
Returns the name of the current theme.

Returns:
The name of the current theme.

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults table)
Overrides:
addCustomEntriesToTable in class OceanTheme

getPrimary1

protected ColorUIResource getPrimary1()
Overrides:
getPrimary1 in class OceanTheme

getPrimary2

protected ColorUIResource getPrimary2()
Overrides:
getPrimary2 in class OceanTheme

getPrimary3

protected ColorUIResource getPrimary3()
Overrides:
getPrimary3 in class OceanTheme

getSecondary1

protected ColorUIResource getSecondary1()
Overrides:
getSecondary1 in class OceanTheme

getSecondary2

protected ColorUIResource getSecondary2()
Overrides:
getSecondary2 in class OceanTheme

getSecondary3

protected ColorUIResource getSecondary3()
Overrides:
getSecondary3 in class OceanTheme