public class P2DPoint extends java.awt.geom.Point2D.Double implements P2DPointInterface
Graphics2D
,
Serialized FormModifier and Type | Field and Description |
---|---|
boolean |
xFlag
The valid flag of the void.
|
boolean |
yFlag
The valid flag of the void.
|
Constructor and Description |
---|
P2DPoint()
Constructs and initializes a point at the origin (0, 0) of the coordinate space.
|
P2DPoint(int x,
int y)
Constructs and initializes a point at the specified (x, y)
location in the coordinate space.
|
P2DPoint(int x,
int y,
boolean valid)
Constructs and initializes a point at the specified (x, y)
location in the coordinate space.
|
P2DPoint(P2DPoint p)
Constructs and initializes a point with the same location
as the specified Point object.
|
P2DPoint(P2DPoint p,
boolean valid)
Constructs and initializes a point with the same location
as the specified Point object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getFlag()
Get the flag.
|
void |
setFlag(boolean valid)
Set the flag of the point.
|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
clone, distance, distance, distanceSq, distanceSq, equals, getX, getY, setLocation, setLocation
public boolean xFlag
public boolean yFlag
public P2DPoint()
public P2DPoint(int x, int y)
x,y
- The coordinates.public P2DPoint(int x, int y, boolean valid)
x,y
- The coordinates.valid
- The valid flag.public P2DPoint(P2DPoint p)
p
- The location.public P2DPoint(P2DPoint p, boolean valid)
p
- The location.valid
- The valid flag.public boolean getFlag()
getFlag
in interface P2DPointInterface
public void setFlag(boolean valid)
setFlag
in interface P2DPointInterface
valid
- true if the point should be valid.