org.jvnet.substance.skin
Class SubstanceAbstractSkin

java.lang.Object
  extended by org.jvnet.substance.skin.SubstanceAbstractSkin
All Implemented Interfaces:
SubstanceSkin, SubstanceTrait
Direct Known Subclasses:
AutumnSkin, BusinessBlackSteelSkin, BusinessBlueSteelSkin, BusinessSkin, ChallengerDeepSkin, ComboBoxTestNew.CustomSkin, CremeCoffeeSkin, CremeSkin, CustomSkin.MySkin, EmeraldDuskSkin, FieldOfWheatSkin, FindingNemoSkin, GreenMagicSkin, MagmaSkin, MangoSkin, MistAquaSkin, MistSilverSkin, ModerateSkin, NebulaSkin, OfficeBlue2007Skin, OfficeSilver2007Skin, RavenGraphiteGlassSkin, RavenGraphiteSkin, RavenSkin, SaharaSkin

public abstract class SubstanceAbstractSkin
extends java.lang.Object
implements SubstanceSkin

Abstract skin for Substance look and feel.

Since:
version 3.1
Author:
Kirill Grouchnikov

Field Summary
protected  SubstanceBorderPainter borderPainter
          The border painter of this skin.
protected  SubstanceButtonShaper buttonShaper
          The button shaper of this skin.
protected  SubstanceDecorationPainter decorationPainter
           
protected  SubstanceGradientPainter gradientPainter
          The gradient painter of this skin.
protected  SubstanceHighlightPainter highlightPainter
           
protected  ControlBackgroundComposite tabBackgroundComposite
          The background composite for tabbed panes of this skin.
protected  SubstanceTheme theme
          The theme of this skin.
protected  SubstanceWatermark watermark
          The watermark of this skin.
 
Constructor Summary
SubstanceAbstractSkin()
           
 
Method Summary
 SubstanceBorderPainter getBorderPainter()
           
 SubstanceButtonShaper getButtonShaper()
           
 SubstanceDecorationPainter getDecorationPainter()
           
 SubstanceGradientPainter getGradientPainter()
           
 SubstanceHighlightPainter getHighlightPainter()
           
 SubstanceTheme getTheme()
          Returns the theme of this skin.
 SubstanceWatermark getWatermark()
          Returns the watermark of this skin.
 boolean set()
          Sets this skin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jvnet.substance.skin.SubstanceSkin
getDisplayName
 

Field Detail

theme

protected SubstanceTheme theme
The theme of this skin. The result may be null if this skin doesn't define a custom theme.


watermark

protected SubstanceWatermark watermark
The watermark of this skin. May be null if this skin doesn't define a custom watermark.


buttonShaper

protected SubstanceButtonShaper buttonShaper
The button shaper of this skin. May be null if this skin doesn't define a custom button shaper.


gradientPainter

protected SubstanceGradientPainter gradientPainter
The gradient painter of this skin. May be null if this skin doesn't define a custom gradient painter.


borderPainter

protected SubstanceBorderPainter borderPainter
The border painter of this skin. May be null if this skin doesn't define a custom border painter.


highlightPainter

protected SubstanceHighlightPainter highlightPainter

decorationPainter

protected SubstanceDecorationPainter decorationPainter

tabBackgroundComposite

protected ControlBackgroundComposite tabBackgroundComposite
The background composite for tabbed panes of this skin. May be null if this skin doesn't define a custom background composite for tabbed panes.

Constructor Detail

SubstanceAbstractSkin

public SubstanceAbstractSkin()
Method Detail

getTheme

public SubstanceTheme getTheme()
Description copied from interface: SubstanceSkin
Returns the theme of this skin. The result may be null if this skin doesn't define a custom theme.

Specified by:
getTheme in interface SubstanceSkin
Returns:
The theme of this skin. The result may be null if this skin doesn't define a custom theme.

getWatermark

public SubstanceWatermark getWatermark()
Description copied from interface: SubstanceSkin
Returns the watermark of this skin. The result may be null if this skin doesn't define a custom watermark.

Specified by:
getWatermark in interface SubstanceSkin
Returns:
The watermark of this skin. The result may be null if this skin doesn't define a custom watermark.

getBorderPainter

public SubstanceBorderPainter getBorderPainter()
Specified by:
getBorderPainter in interface SubstanceSkin

getButtonShaper

public SubstanceButtonShaper getButtonShaper()
Specified by:
getButtonShaper in interface SubstanceSkin

getGradientPainter

public SubstanceGradientPainter getGradientPainter()
Specified by:
getGradientPainter in interface SubstanceSkin

getHighlightPainter

public SubstanceHighlightPainter getHighlightPainter()
Specified by:
getHighlightPainter in interface SubstanceSkin

getDecorationPainter

public SubstanceDecorationPainter getDecorationPainter()
Specified by:
getDecorationPainter in interface SubstanceSkin

set

public boolean set()
Description copied from interface: SubstanceSkin
Sets this skin. Can call any public static method in SubstanceLookAndFeel class.

Specified by:
set in interface SubstanceSkin
Returns:
true if skin has been set successfully, false otherwise.