|
mxGraph 1.10.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.mxPoint
public class mxPoint
Implements a 2-dimensional point with double precision coordinates.
Field Summary | |
---|---|
protected double |
x
Holds the x- and y-coordinates of the point. |
protected double |
y
Holds the x- and y-coordinates of the point. |
Constructor Summary | |
---|---|
mxPoint()
Constructs a new point at (0, 0). |
|
mxPoint(double x,
double y)
Constructs a new point at (x, y). |
|
mxPoint(mxPoint point)
Constructs a new point at the location of the given point. |
|
mxPoint(Point2D point)
Constructs a new point at the location of the given point. |
Method Summary | |
---|---|
Object |
clone()
Returns a new instance of the same point. |
boolean |
equals(Object obj)
Returns true if the given object equals this rectangle. |
Point |
getPoint()
Returns the coordinates as a new point. |
double |
getX()
Returns the x-coordinate of the point. |
double |
getY()
Returns the x-coordinate of the point. |
void |
setX(double value)
Sets the x-coordinate of the point. |
void |
setY(double value)
Sets the x-coordinate of the point. |
String |
toString()
Returns a String that represents the value
of this mxPoint . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double x
protected double y
Constructor Detail |
---|
public mxPoint()
public mxPoint(Point2D point)
point
- Point that specifies the location.public mxPoint(mxPoint point)
point
- Point that specifies the location.public mxPoint(double x, double y)
x
- X-coordinate of the point to be created.y
- Y-coordinate of the point to be created.Method Detail |
---|
public double getX()
public void setX(double value)
value
- Double that specifies the new x-coordinate.public double getY()
public void setY(double value)
value
- Double that specifies the new x-coordinate.public Point getPoint()
public boolean equals(Object obj)
equals
in class Object
public Object clone()
clone
in class Object
public String toString()
String
that represents the value
of this mxPoint
.
toString
in class Object
mxPoint
.
|
mxGraph 1.10.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |