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, CremeCoffeeSkin, CremeSkin, EbonyHighContrastSkin, 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  SubstanceGradientPainter gradientPainter
          The gradient painter of this skin.
protected  SubstanceButtonShaper shaper
          The button shaper of this skin.
protected  ControlBackgroundComposite tabBackgroundComposite
          The background composite for tabbed panes of this skin.
protected  SubstanceTheme theme
          The theme of this skin.
protected  SubstanceTitlePainter titlePainter
          The title painter of this skin.
protected  SubstanceWatermark watermark
          The watermark of this skin.
 
Constructor Summary
SubstanceAbstractSkin()
           
 
Method Summary
 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.


shaper

protected SubstanceButtonShaper shaper
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.


titlePainter

protected SubstanceTitlePainter titlePainter
The title painter of this skin. May be null if this skin doesn't define a custom title painter.


borderPainter

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


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.

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.