| java.lang.Object org.jvnet.substance.button.BaseButtonShaper
All known Subclasses: org.jvnet.substance.button.StandardButtonShaper, org.jvnet.substance.button.ClassicButtonShaper, org.jvnet.substance.shaperpack.button.BasePolygonShaper,
BaseButtonShaper | abstract public class BaseButtonShaper implements SubstanceButtonShaper(Code) | | Base button shaper. Provides common functionality that can be used by actual
button shapers. This class is part of officially supported API.
author: Kirill Grouchnikov |
Method Summary | |
public static GeneralPath | getBaseOutline(AbstractButton button, float radius, Set<Side> straightSides) Returns basic outline for the specified button. | public static GeneralPath | getBaseOutline(int width, int height, float radius, Set<Side> straightSides) Returns basic outline for the specified parameters. | public static GeneralPath | getBaseOutline(int width, int height, float radius, Set<Side> straightSides, int insets) Returns basic outline for the specified parameters. | public static GeneralPath | getBaseOutline(int width, int height, float radius, Set<Side> straightSides, Insets insets) Returns basic outline for the specified parameters. | public GeneralPath | getButtonOutline(AbstractButton button, Insets insets) | public GeneralPath | getButtonOutline(AbstractButton button) | public static GeneralPath | getTriangleButtonOutline(int width, int height, float radius, int insets) Returns outline that has a triangle poiting downwards. | public static GeneralPath | getTriangleButtonOutline(int width, int height, float radius, Insets insets) Returns outline that has a triangle poiting downwards. |
getBaseOutline | public static GeneralPath getBaseOutline(AbstractButton button, float radius, Set<Side> straightSides)(Code) | | Returns basic outline for the specified button. The basic outline is a
rectangle with rounded corners. Some corners may not be rounded based on
the contents of straightSide parameter.
Parameters: button - A button. Parameters: radius - Corner radius. Parameters: straightSides - Contains all sides which are straight. The basic outline for the specified parameters. |
getBaseOutline | public static GeneralPath getBaseOutline(int width, int height, float radius, Set<Side> straightSides)(Code) | | Returns basic outline for the specified parameters. The basic outline is
a rectangle with rounded corners. Some corners may not be rounded based
on the contents of straightSide parameter.
Parameters: width - Width of some UI component. Parameters: height - Height of some UI component. Parameters: radius - Corner radius. Parameters: straightSides - Contains all sides which are straight. The basic outline for the specified parameters. |
getBaseOutline | public static GeneralPath getBaseOutline(int width, int height, float radius, Set<Side> straightSides, int insets)(Code) | | Returns basic outline for the specified parameters. The basic outline is
a rectangle with rounded corners. Some corners may not be rounded based
on the contents of straightSides parameter.
Parameters: width - Width of some UI component. Parameters: height - Height of some UI component. Parameters: radius - Corner radius. Parameters: straightSides - Contains all sides which are straight. Parameters: insets - Shape insets. The basic outline for the specified parameters. |
getBaseOutline | public static GeneralPath getBaseOutline(int width, int height, float radius, Set<Side> straightSides, Insets insets)(Code) | | Returns basic outline for the specified parameters. The basic outline is
a rectangle with rounded corners. Some corners may not be rounded based
on the contents of straightSides parameter.
Parameters: width - Width of some UI component. Parameters: height - Height of some UI component. Parameters: radius - Corner radius. Parameters: straightSides - Contains all sides which are straight. Parameters: insets - Shape insets. The basic outline for the specified parameters. |
getTriangleButtonOutline | public static GeneralPath getTriangleButtonOutline(int width, int height, float radius, int insets)(Code) | | Returns outline that has a triangle poiting downwards. The top two
corners in the outline are rounded. This function can be used to draw
slider thumbs.
Parameters: width - Width of some UI component. Parameters: height - Height of some UI component. Parameters: radius - Corner radius for the top two corners. Parameters: insets - Insets to compute the outline. Outline that has a triangle poiting downwards. |
getTriangleButtonOutline | public static GeneralPath getTriangleButtonOutline(int width, int height, float radius, Insets insets)(Code) | | Returns outline that has a triangle poiting downwards. The top two
corners in the outline are rounded. This function can be used to draw
slider thumbs.
Parameters: width - Width of some UI component. Parameters: height - Height of some UI component. Parameters: radius - Corner radius for the top two corners. Parameters: insets - Insets to compute the outline. Outline that has a triangle poiting downwards. |
|
|