|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcckit.graphic.BasicGraphicalElement jcckit.graphic.Polygon
A polygon or polyline.
Constructor Summary | |
Polygon(GraphicAttributes attributes,
boolean closed)
Creates an instance of the specified graphic attributes. |
Method Summary | |
void |
addPoint(GraphPoint point)
Adds a new point to the end of the list of points. |
int |
getNumberOfPoints()
Returns the number points. |
GraphPoint |
getPoint(int index)
Returns the point for the specified index. |
boolean |
isClosed()
Returns true if this polygon is closed. |
void |
removeAllPoints()
Removes all points. |
void |
renderWith(Renderer renderer)
Renders this line with the specified Renderer . |
void |
replacePointAt(int index,
GraphPoint point)
Replaces the point at the specified index by a new one. |
Methods inherited from class jcckit.graphic.BasicGraphicalElement |
getGraphicAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Polygon(GraphicAttributes attributes, boolean closed)
closed
- true if this polygon is closed.Method Detail |
public boolean isClosed()
isClosed
in class BasicGraphicalElement
public int getNumberOfPoints()
public GraphPoint getPoint(int index)
public void addPoint(GraphPoint point)
public void removeAllPoints()
public void replacePointAt(int index, GraphPoint point)
public void renderWith(Renderer renderer)
Renderer
.
renderer
- An instance of PolygonRenderer
.
java.lang.IllegalArgumentException
- if renderer is not
an instance of PolygonRenderer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |