|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.button.BaseButtonShaper
public abstract class BaseButtonShaper
Base button shaper. Provides common functionality that can be used by actual button shapers. This class is part of officially supported API.
Constructor Summary | |
---|---|
BaseButtonShaper()
|
Method Summary | |
---|---|
static java.awt.geom.GeneralPath |
getBaseOutline(javax.swing.AbstractButton button,
float radius,
java.util.Set<SubstanceConstants.Side> straightSides)
Returns basic outline for the specified button. |
static java.awt.geom.GeneralPath |
getBaseOutline(int width,
int height,
float radius,
java.util.Set<SubstanceConstants.Side> straightSides)
Returns basic outline for the specified parameters. |
static java.awt.geom.GeneralPath |
getBaseOutline(int width,
int height,
float radius,
java.util.Set<SubstanceConstants.Side> straightSides,
java.awt.Insets insets)
Returns basic outline for the specified parameters. |
static java.awt.geom.GeneralPath |
getBaseOutline(int width,
int height,
float radius,
java.util.Set<SubstanceConstants.Side> straightSides,
int insets)
Returns basic outline for the specified parameters. |
java.awt.geom.GeneralPath |
getButtonOutline(javax.swing.AbstractButton button)
Returns the outline path for the specified button. |
java.awt.geom.GeneralPath |
getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets)
Returns the outline path for the specified button. |
static java.awt.geom.GeneralPath |
getTriangleButtonOutline(int width,
int height,
float radius,
java.awt.Insets insets)
Returns outline that has a triangle poiting downwards. |
static java.awt.geom.GeneralPath |
getTriangleButtonOutline(int width,
int height,
float radius,
int insets)
Returns outline that has a triangle poiting downwards. |
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.button.SubstanceButtonShaper |
---|
getButtonBorder, getButtonOutline, getDisplayName, getPreferredSize, isProportionate |
Constructor Detail |
---|
public BaseButtonShaper()
Method Detail |
---|
public static java.awt.geom.GeneralPath getBaseOutline(javax.swing.AbstractButton button, float radius, java.util.Set<SubstanceConstants.Side> straightSides)
straightSide
parameter.
button
- A button.radius
- Corner radius.straightSides
- Contains all sides which are straight.
public static java.awt.geom.GeneralPath getBaseOutline(int width, int height, float radius, java.util.Set<SubstanceConstants.Side> straightSides)
straightSide
parameter.
width
- Width of some UI component.height
- Height of some UI component.radius
- Corner radius.straightSides
- Contains all sides which are straight.
public static java.awt.geom.GeneralPath getBaseOutline(int width, int height, float radius, java.util.Set<SubstanceConstants.Side> straightSides, int insets)
straightSides
parameter.
width
- Width of some UI component.height
- Height of some UI component.radius
- Corner radius.straightSides
- Contains all sides which are straight.insets
- Shape insets.
public static java.awt.geom.GeneralPath getBaseOutline(int width, int height, float radius, java.util.Set<SubstanceConstants.Side> straightSides, java.awt.Insets insets)
straightSides
parameter.
width
- Width of some UI component.height
- Height of some UI component.radius
- Corner radius.straightSides
- Contains all sides which are straight.insets
- Shape insets.
public static java.awt.geom.GeneralPath getTriangleButtonOutline(int width, int height, float radius, int insets)
width
- Width of some UI component.height
- Height of some UI component.radius
- Corner radius for the top two corners.insets
- Insets to compute the outline.
public static java.awt.geom.GeneralPath getTriangleButtonOutline(int width, int height, float radius, java.awt.Insets insets)
width
- Width of some UI component.height
- Height of some UI component.radius
- Corner radius for the top two corners.insets
- Insets to compute the outline.
public java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button, java.awt.Insets insets)
SubstanceButtonShaper
getButtonOutline
in interface SubstanceButtonShaper
button
- A button.insets
- Button insets.
public java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button)
SubstanceButtonShaper
getButtonOutline
in interface SubstanceButtonShaper
button
- A button.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |