public class Vertex extends Object
| Constructor and Description |
|---|
Vertex()
Default constructor.
|
Vertex(int id)
Constructor.
|
Vertex(int id,
boolean border)
Constructor.
|
Vertex(int id,
com.vividsolutions.jts.geom.Coordinate coordinate)
Constructor.
|
Vertex(int id,
com.vividsolutions.jts.geom.Coordinate coordinate,
boolean border)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.vividsolutions.jts.geom.Coordinate |
getCoordinate()
Returns the coordinate of the vertex.
|
int |
getId()
Returns the ID of the vertex.
|
boolean |
isBorder()
Returns true if the vertex is a border vertex
of the triangulation framework, false otherwise.
|
void |
setBorder(boolean border)
Defines the indicator to know if the edge
is a border edge of the triangulation framework.
|
void |
setCoordinate(com.vividsolutions.jts.geom.Coordinate c)
Defines the coordinate of the vertex.
|
void |
setId(int id)
Defines the ID of the vertex.
|
public Vertex()
public Vertex(int id)
id - ID of the vertexpublic Vertex(int id,
com.vividsolutions.jts.geom.Coordinate coordinate)
id - ID of the vertexcoordinate - coordinate of the vertexpublic Vertex(int id,
boolean border)
id - ID of the vertexborder - defines if the vertex is a border vertex
or not in the triangulation frameworkpublic Vertex(int id,
com.vividsolutions.jts.geom.Coordinate coordinate,
boolean border)
id - ID of the vertexcoordinate - coordinate of the vertexborder - defines if the vertex is a border vertex
or not in the triangulation frameworkpublic int getId()
public void setId(int id)
id - the ID of the vertexpublic com.vividsolutions.jts.geom.Coordinate getCoordinate()
public void setCoordinate(com.vividsolutions.jts.geom.Coordinate c)
c - the coordinate of the vertexpublic boolean isBorder()
public void setBorder(boolean border)
border - true if the edge is a border edge,
false otherwiseCopyright © 2018. All rights reserved.