public final class Point extends AbstractGeometricPrimitive
Modifier and Type | Field and Description |
---|---|
private Position |
pos |
private static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Make a deep copy of the geometric object
|
boolean |
equals(java.lang.Object obj) |
Position |
getPosition()
Get the position
|
void |
setPosition(Position pos)
Set the position
|
private static final long serialVersionUID
private Position pos
public Point()
public Point(Position pos)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
AbstractGeometry
clone
in class AbstractGeometry
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
equals
in class AbstractGeometry
public Position getPosition()
public void setPosition(Position pos)
pos
- the new position