|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.substance.utils.SubstanceOutlineUtilities
public class SubstanceOutlineUtilities
Provides common functionality that can be used by button shapers. This class is for internal use only.
| Constructor Summary | |
|---|---|
SubstanceOutlineUtilities()
|
|
| Method Summary | |
|---|---|
static java.awt.geom.GeneralPath |
getBaseOutline(java.awt.Component comp,
float radius,
java.util.Set<SubstanceConstants.Side> straightSides)
Returns basic outline for the specified component. |
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. |
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 |
| Constructor Detail |
|---|
public SubstanceOutlineUtilities()
| Method Detail |
|---|
public static java.awt.geom.GeneralPath getBaseOutline(java.awt.Component comp,
float radius,
java.util.Set<SubstanceConstants.Side> straightSides)
straightSide parameter.
comp - 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)
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||