public class GMLNode extends GMLObject
Constructor and Description |
---|
GMLNode(int id,
double x,
double y)
Construct a new GML node.
|
GMLNode(int id,
GMLCoordinates coordinates)
Construct a new GML node.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(CoordinateConversion c)
Apply a CoordinateConversion to this node.
|
GMLCoordinates |
getCoordinates()
Get the coordinates of this node.
|
double |
getX()
Get the X coordinate.
|
double |
getY()
Get the Y coordinate.
|
void |
setCoordinates(GMLCoordinates c)
Set the coordinates of this node.
|
java.lang.String |
toString() |
public GMLNode(int id, double x, double y)
id
- The ID of this node.x
- The x coordinate of this node.y
- The y coordinate of this node.public GMLNode(int id, GMLCoordinates coordinates)
id
- The ID of this node.coordinates
- The coordinates of this node.public GMLCoordinates getCoordinates()
public void setCoordinates(GMLCoordinates c)
c
- The new coordinates.public double getX()
public double getY()
public void convert(CoordinateConversion c)
c
- The conversion to apply.public java.lang.String toString()
toString
in class java.lang.Object