|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Vertices
This interface represents a list of vertices. This interface is used by annotations that are composed of lines that are formed by connecting points.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Point2D addVertex(double x,
double y)
x - The X location of the vertexy - The y location of the vertex
Point2D 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||