org.jvnet.substance.shaper
Class BaseButtonShaper

java.lang.Object
  extended by org.jvnet.substance.shaper.BaseButtonShaper
All Implemented Interfaces:
SubstanceTrait, SubstanceButtonShaper
Direct Known Subclasses:
ClassicButtonShaper, StandardButtonShaper

public abstract class BaseButtonShaper
extends java.lang.Object
implements SubstanceButtonShaper

Base button shaper. This class is for internal use only.

Author:
Kirill Grouchnikov

Constructor Summary
BaseButtonShaper()
           
 
Method Summary
 java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button)
          Returns the outline path for the specified control.
 java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button, java.awt.Insets insets)
          Returns the outline path for the specified button.
 
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.shaper.SubstanceButtonShaper
getButtonBorder, getButtonOutline, getDisplayName, getPreferredSize, isProportionate
 

Constructor Detail

BaseButtonShaper

public BaseButtonShaper()
Method Detail

getButtonOutline

public java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button,
                                                  java.awt.Insets insets)
Description copied from interface: SubstanceButtonShaper
Returns the outline path for the specified button.

Specified by:
getButtonOutline in interface SubstanceButtonShaper
Parameters:
button - A button.
insets - Button insets.
Returns:
The outline path for the specified button.

getButtonOutline

public java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button)
Description copied from interface: SubstanceButtonShaper
Returns the outline path for the specified control.

Specified by:
getButtonOutline in interface SubstanceButtonShaper
Parameters:
button - A button.
Returns:
The outline path for the specified control.