com.qoppa.pdf.annotations
Interface Vertices


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.

Author:
Qoppa Softwawe

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

addVertex

Point2D addVertex(double x,
                  double y)
Adds a vertex at the end of the list.

Parameters:
x - The X location of the vertex
y - The y location of the vertex
Returns:
A Point2D object with the location of the vertex.

getVertex

Point2D getVertex(int index)
Gets the vertex at the given index.

Parameters:
index - The index of the vertex in this list to get.
Returns:
The vertex.

getVertexCount

int getVertexCount()
Gets the number of vertices that are held in this object.

Returns:
The number of vertices.

removeVertex

void removeVertex(int index)
Removes a vertex from this list.

Parameters:
index - The index of the vertex to remove.

isModified

boolean isModified()
Returns a flag indicating whether the list of vertices, or any vertices in the list has been modified.

Returns:
Flag indicating if this list has been modified.

setModified

void setModified(boolean mod)
Sets the modified flag.

Parameters:
mod - The new value of the modified flag.