public class SubstanceOutlineUtilities extends Object
Constructor | Description |
---|---|
SubstanceOutlineUtilities() |
Modifier and Type | Method | Description |
---|---|---|
static GeneralPath |
getBaseOutline(int width,
int height,
float radius,
Set<SubstanceConstants.Side> straightSides) |
Returns basic outline for the specified parameters.
|
static GeneralPath |
getBaseOutline(int width,
int height,
float radius,
Set<SubstanceConstants.Side> straightSides,
int insets) |
Returns basic outline for the specified parameters.
|
static GeneralPath |
getBaseOutline(int width,
int height,
float radius,
Set<SubstanceConstants.Side> straightSides,
Insets insets) |
Returns basic outline for the specified parameters.
|
static GeneralPath |
getBaseOutline(Component comp,
float radius,
Set<SubstanceConstants.Side> straightSides) |
Returns basic outline for the specified component.
|
static GeneralPath |
getTriangleButtonOutline(int width,
int height,
float radius,
int insets) |
Returns outline that has a triangle poiting downwards.
|
static GeneralPath |
getTriangleButtonOutline(int width,
int height,
float radius,
Insets insets) |
Returns outline that has a triangle poiting downwards.
|
public static GeneralPath getBaseOutline(Component comp, float radius, Set<SubstanceConstants.Side> straightSides)
straightSide
parameter.comp
- Component.radius
- Corner radius.straightSides
- Contains all sides which are straight.public static GeneralPath getBaseOutline(int width, int height, float radius, 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 GeneralPath getBaseOutline(int width, int height, float radius, 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 GeneralPath getBaseOutline(int width, int height, float radius, Set<SubstanceConstants.Side> straightSides, 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 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 GeneralPath getTriangleButtonOutline(int width, int height, float radius, 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.