org.jvnet.substance.utils
public class SubstanceOutlineUtilities extends java.lang.Object
Constructor and Description |
---|
SubstanceOutlineUtilities() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.