public final class ShapeUtils extends Object
Modifier | Constructor and Description |
---|---|
private |
ShapeUtils()
Creates a new instance of ShapeUtils
|
Modifier and Type | Method and Description |
---|---|
static Shape |
generatePolygon(int sides,
int outsideRadius,
boolean normalize) |
static Shape |
generatePolygon(int sides,
int outsideRadius,
int insideRadius) |
static Shape |
generatePolygon(int sides,
int outsideRadius,
int insideRadius,
boolean normalize) |
static Shape |
generateShapeFromText(Font font,
char ch) |
static Shape |
generateShapeFromText(Font font,
String string) |
static Shape |
mergeClip(Graphics g,
Shape clip)
Sets the clip on a graphics object by merging a supplied clip with the existing one.
|
private ShapeUtils()
public static Shape generatePolygon(int sides, int outsideRadius, boolean normalize)
public static Shape generatePolygon(int sides, int outsideRadius, int insideRadius, boolean normalize)
public static Shape generatePolygon(int sides, int outsideRadius, int insideRadius)
public static Shape generateShapeFromText(Font font, char ch)
public static Shape generateShapeFromText(Font font, String string)
public static Shape mergeClip(Graphics g, Shape clip)
g
- the graphics object to updateclip
- a new clipping region to add to the graphics clip.null
if the current clip is null
.NullPointerException
- if any parameter is null
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses