com.jgoodies.looks.plastic
Class PlasticTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
          extended by 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.9 $
Author:
Karsten Lentzsch

Field Summary
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
           
static java.awt.Color LT_BRIGHTEN_STOP
           
static java.awt.Color LT_DARKEN_STOP
           
protected static javax.swing.plaf.ColorUIResource WHITE
           
 
Constructor Summary
PlasticTheme()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

PlasticTheme

public PlasticTheme()
Method Detail

getBlack

protected javax.swing.plaf.ColorUIResource getBlack()
Overrides:
getBlack in class javax.swing.plaf.metal.MetalTheme

getWhite

protected javax.swing.plaf.ColorUIResource getWhite()
Overrides:
getWhite in class javax.swing.plaf.metal.MetalTheme

getSystemTextColor

public javax.swing.plaf.ColorUIResource getSystemTextColor()
Overrides:
getSystemTextColor in class javax.swing.plaf.metal.MetalTheme

getTitleTextColor

public javax.swing.plaf.ColorUIResource getTitleTextColor()

getMenuForeground

public javax.swing.plaf.ColorUIResource getMenuForeground()
Overrides:
getMenuForeground in class javax.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 class javax.swing.plaf.metal.DefaultMetalTheme

getMenuTextFont

public javax.swing.plaf.FontUIResource getMenuTextFont()
Overrides:
getMenuTextFont in class javax.swing.plaf.metal.DefaultMetalTheme

getSubTextFont

public javax.swing.plaf.FontUIResource getSubTextFont()
Overrides:
getSubTextFont in class javax.swing.plaf.metal.DefaultMetalTheme

getSystemTextFont

public javax.swing.plaf.FontUIResource getSystemTextFont()
Overrides:
getSystemTextFont in class javax.swing.plaf.metal.DefaultMetalTheme

getUserTextFont

public javax.swing.plaf.FontUIResource getUserTextFont()
Overrides:
getUserTextFont in class javax.swing.plaf.metal.DefaultMetalTheme

getWindowTitleFont

public javax.swing.plaf.FontUIResource getWindowTitleFont()
Overrides:
getWindowTitleFont in class javax.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 class java.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 class java.lang.Object
Returns:
this theme's hash code


Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.