Modifier and Type | Field and Description |
---|---|
static PolygonShape[] |
POLYSHAPES
Array of known shape instances.
|
Modifier | Constructor and Description |
---|---|
protected |
PolygonShape(String name,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract Glyph |
createPolygonGlyph(int x0,
int y0,
int[] xs,
int[] ys,
int np)
Returns a glyph representing a polygon with the given vertices.
|
String |
getDescription()
Returns a short description for this shape.
|
String |
getName()
Returns this shape's name.
|
String |
toString() |
abstract PolygonShape |
toThicker(int nthick)
Returns a version of this shape with thicker lines;
may be this object if line thickening would have no effect.
|
public static final PolygonShape[] POLYSHAPES
public abstract Glyph createPolygonGlyph(int x0, int y0, int[] xs, int[] ys, int np)
x0
- X coordinate of nominal centery0
- Y coordinate of nominal centerxs
- X coordinates of verticesys
- Y coordinates of verticesnp
- number of verticespublic abstract PolygonShape toThicker(int nthick)
nthick
- line thickness index >=0public String getName()
public String getDescription()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.