org.jvnet.substance.shaper
Class BaseButtonShaper
java.lang.Object
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
Method Summary |
java.awt.Shape |
getButtonOutline(javax.swing.AbstractButton button)
Returns the outline path for the specified control. |
java.awt.Shape |
getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets)
Returns the outline path for the specified button. |
java.awt.Shape |
getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets,
int width,
int height)
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 |
BaseButtonShaper
public BaseButtonShaper()
getButtonOutline
public final java.awt.Shape 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 final java.awt.Shape 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.
getButtonOutline
public final java.awt.Shape getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets,
int width,
int height)
- 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.width
- Button width.height
- Button height.
- Returns:
- The outline path for the specified button.