public interface Vertices
| Modifier and Type | Method and Description |
|---|---|
Point2D |
addVertex(double x,
double y)
Adds a vertex at the end of the list.
|
Point2D |
getVertex(int index)
Gets the vertex at the given index.
|
int |
getVertexCount()
Gets the number of vertices that are held in this object.
|
boolean |
isModified()
Returns a flag indicating whether the list of vertices, or any vertices in the list has been modified.
|
void |
removeVertex(int index)
Removes a vertex from this list.
|
void |
setModified(boolean mod)
Sets the modified flag.
|
Point2D addVertex(double x, double y)
x - The X location of the vertexy - The y location of the vertexPoint2D getVertex(int index)
index - The index of the vertex in this list to get.int getVertexCount()
void removeVertex(int index)
index - The index of the vertex to remove.boolean isModified()
void setModified(boolean mod)
mod - The new value of the modified flag.