Package com.jgoodies.looks.plastic
Class PlasticTheme
- java.lang.Object
-
- javax.swing.plaf.metal.MetalTheme
-
- javax.swing.plaf.metal.DefaultMetalTheme
-
- com.jgoodies.looks.plastic.PlasticTheme
-
- Direct Known Subclasses:
InvertedColorTheme
,SkyBluer
public abstract class PlasticTheme extends javax.swing.plaf.metal.DefaultMetalTheme
Unlike its superclass this theme class has relaxed access.- Version:
- $Revision: 1.11 $
-
-
Field Summary
Fields Modifier and Type Field Description protected static javax.swing.plaf.ColorUIResource
BLACK
static java.awt.Color
BRIGHTEN_START
static java.awt.Color
BRIGHTEN_STOP
static java.awt.Color
DARKEN_START
static java.awt.Color
DARKEN_STOP
private FontSet
fontSet
Holds the set of fonts used by this theme.static java.awt.Color
LT_BRIGHTEN_STOP
static java.awt.Color
LT_DARKEN_STOP
protected static javax.swing.plaf.ColorUIResource
WHITE
-
Constructor Summary
Constructors Constructor Description PlasticTheme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Plastic themes are equal if and only if their classes are the same.protected javax.swing.plaf.ColorUIResource
getBlack()
javax.swing.plaf.FontUIResource
getControlTextFont()
protected FontSet
getFontSet()
javax.swing.plaf.ColorUIResource
getMenuForeground()
javax.swing.plaf.ColorUIResource
getMenuItemBackground()
javax.swing.plaf.ColorUIResource
getMenuItemSelectedBackground()
javax.swing.plaf.ColorUIResource
getMenuItemSelectedForeground()
javax.swing.plaf.FontUIResource
getMenuTextFont()
javax.swing.plaf.ColorUIResource
getSimpleInternalFrameBackground()
javax.swing.plaf.ColorUIResource
getSimpleInternalFrameForeground()
javax.swing.plaf.FontUIResource
getSubTextFont()
javax.swing.plaf.ColorUIResource
getSystemTextColor()
javax.swing.plaf.FontUIResource
getSystemTextFont()
javax.swing.plaf.ColorUIResource
getTitleTextColor()
javax.swing.plaf.FontUIResource
getTitleTextFont()
javax.swing.plaf.ColorUIResource
getToggleButtonCheckColor()
javax.swing.plaf.FontUIResource
getUserTextFont()
protected javax.swing.plaf.ColorUIResource
getWhite()
javax.swing.plaf.FontUIResource
getWindowTitleFont()
int
hashCode()
Returns this theme's hash code, the classes' hash code.-
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getName, getPrimary1, getPrimary2, getPrimary3, getSecondary1, getSecondary2, getSecondary3
-
Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getTextHighlightColor, getUserTextColor, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
-
-
-
-
Field Detail
-
DARKEN_START
public static final java.awt.Color DARKEN_START
-
DARKEN_STOP
public static final java.awt.Color DARKEN_STOP
-
LT_DARKEN_STOP
public static final java.awt.Color LT_DARKEN_STOP
-
BRIGHTEN_START
public static final java.awt.Color BRIGHTEN_START
-
BRIGHTEN_STOP
public static final java.awt.Color BRIGHTEN_STOP
-
LT_BRIGHTEN_STOP
public static final java.awt.Color LT_BRIGHTEN_STOP
-
WHITE
protected static final javax.swing.plaf.ColorUIResource WHITE
-
BLACK
protected static final javax.swing.plaf.ColorUIResource BLACK
-
fontSet
private FontSet fontSet
Holds the set of fonts used by this theme. It is lazily initialized using the shared FontPolicy provided by the PlasticLookAndFeel.- See Also:
getFontSet()
,PlasticLookAndFeel.getFontPolicy()
-
-
Method Detail
-
getBlack
protected javax.swing.plaf.ColorUIResource getBlack()
- Overrides:
getBlack
in classjavax.swing.plaf.metal.MetalTheme
-
getWhite
protected javax.swing.plaf.ColorUIResource getWhite()
- Overrides:
getWhite
in classjavax.swing.plaf.metal.MetalTheme
-
getSystemTextColor
public javax.swing.plaf.ColorUIResource getSystemTextColor()
- Overrides:
getSystemTextColor
in classjavax.swing.plaf.metal.MetalTheme
-
getTitleTextColor
public javax.swing.plaf.ColorUIResource getTitleTextColor()
-
getMenuForeground
public javax.swing.plaf.ColorUIResource getMenuForeground()
- Overrides:
getMenuForeground
in classjavax.swing.plaf.metal.MetalTheme
-
getMenuItemBackground
public javax.swing.plaf.ColorUIResource getMenuItemBackground()
-
getMenuItemSelectedBackground
public javax.swing.plaf.ColorUIResource getMenuItemSelectedBackground()
-
getMenuItemSelectedForeground
public javax.swing.plaf.ColorUIResource getMenuItemSelectedForeground()
-
getSimpleInternalFrameForeground
public javax.swing.plaf.ColorUIResource getSimpleInternalFrameForeground()
-
getSimpleInternalFrameBackground
public javax.swing.plaf.ColorUIResource getSimpleInternalFrameBackground()
-
getToggleButtonCheckColor
public javax.swing.plaf.ColorUIResource getToggleButtonCheckColor()
-
getTitleTextFont
public javax.swing.plaf.FontUIResource getTitleTextFont()
-
getControlTextFont
public javax.swing.plaf.FontUIResource getControlTextFont()
- Overrides:
getControlTextFont
in classjavax.swing.plaf.metal.DefaultMetalTheme
-
getMenuTextFont
public javax.swing.plaf.FontUIResource getMenuTextFont()
- Overrides:
getMenuTextFont
in classjavax.swing.plaf.metal.DefaultMetalTheme
-
getSubTextFont
public javax.swing.plaf.FontUIResource getSubTextFont()
- Overrides:
getSubTextFont
in classjavax.swing.plaf.metal.DefaultMetalTheme
-
getSystemTextFont
public javax.swing.plaf.FontUIResource getSystemTextFont()
- Overrides:
getSystemTextFont
in classjavax.swing.plaf.metal.DefaultMetalTheme
-
getUserTextFont
public javax.swing.plaf.FontUIResource getUserTextFont()
- Overrides:
getUserTextFont
in classjavax.swing.plaf.metal.DefaultMetalTheme
-
getWindowTitleFont
public javax.swing.plaf.FontUIResource getWindowTitleFont()
- Overrides:
getWindowTitleFont
in classjavax.swing.plaf.metal.DefaultMetalTheme
-
getFontSet
protected FontSet getFontSet()
-
equals
public boolean equals(java.lang.Object o)
Plastic themes are equal if and only if their classes are the same.- Overrides:
equals
in classjava.lang.Object
- Returns:
- true if this theme is equal to the given object
-
hashCode
public int hashCode()
Returns this theme's hash code, the classes' hash code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- this theme's hash code
-
-