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.DefaultMetalThemeUnlike 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.ColorUIResourceBLACKstatic java.awt.ColorBRIGHTEN_STARTstatic java.awt.ColorBRIGHTEN_STOPstatic java.awt.ColorDARKEN_STARTstatic java.awt.ColorDARKEN_STOPprivate FontSetfontSetHolds the set of fonts used by this theme.static java.awt.ColorLT_BRIGHTEN_STOPstatic java.awt.ColorLT_DARKEN_STOPprotected static javax.swing.plaf.ColorUIResourceWHITE
-
Constructor Summary
Constructors Constructor Description PlasticTheme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Plastic themes are equal if and only if their classes are the same.protected javax.swing.plaf.ColorUIResourcegetBlack()javax.swing.plaf.FontUIResourcegetControlTextFont()protected FontSetgetFontSet()javax.swing.plaf.ColorUIResourcegetMenuForeground()javax.swing.plaf.ColorUIResourcegetMenuItemBackground()javax.swing.plaf.ColorUIResourcegetMenuItemSelectedBackground()javax.swing.plaf.ColorUIResourcegetMenuItemSelectedForeground()javax.swing.plaf.FontUIResourcegetMenuTextFont()javax.swing.plaf.ColorUIResourcegetSimpleInternalFrameBackground()javax.swing.plaf.ColorUIResourcegetSimpleInternalFrameForeground()javax.swing.plaf.FontUIResourcegetSubTextFont()javax.swing.plaf.ColorUIResourcegetSystemTextColor()javax.swing.plaf.FontUIResourcegetSystemTextFont()javax.swing.plaf.ColorUIResourcegetTitleTextColor()javax.swing.plaf.FontUIResourcegetTitleTextFont()javax.swing.plaf.ColorUIResourcegetToggleButtonCheckColor()javax.swing.plaf.FontUIResourcegetUserTextFont()protected javax.swing.plaf.ColorUIResourcegetWhite()javax.swing.plaf.FontUIResourcegetWindowTitleFont()inthashCode()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:
getBlackin classjavax.swing.plaf.metal.MetalTheme
-
getWhite
protected javax.swing.plaf.ColorUIResource getWhite()
- Overrides:
getWhitein classjavax.swing.plaf.metal.MetalTheme
-
getSystemTextColor
public javax.swing.plaf.ColorUIResource getSystemTextColor()
- Overrides:
getSystemTextColorin classjavax.swing.plaf.metal.MetalTheme
-
getTitleTextColor
public javax.swing.plaf.ColorUIResource getTitleTextColor()
-
getMenuForeground
public javax.swing.plaf.ColorUIResource getMenuForeground()
- Overrides:
getMenuForegroundin 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:
getControlTextFontin classjavax.swing.plaf.metal.DefaultMetalTheme
-
getMenuTextFont
public javax.swing.plaf.FontUIResource getMenuTextFont()
- Overrides:
getMenuTextFontin classjavax.swing.plaf.metal.DefaultMetalTheme
-
getSubTextFont
public javax.swing.plaf.FontUIResource getSubTextFont()
- Overrides:
getSubTextFontin classjavax.swing.plaf.metal.DefaultMetalTheme
-
getSystemTextFont
public javax.swing.plaf.FontUIResource getSystemTextFont()
- Overrides:
getSystemTextFontin classjavax.swing.plaf.metal.DefaultMetalTheme
-
getUserTextFont
public javax.swing.plaf.FontUIResource getUserTextFont()
- Overrides:
getUserTextFontin classjavax.swing.plaf.metal.DefaultMetalTheme
-
getWindowTitleFont
public javax.swing.plaf.FontUIResource getWindowTitleFont()
- Overrides:
getWindowTitleFontin 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:
equalsin 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:
hashCodein classjava.lang.Object- Returns:
- this theme's hash code
-
-