Implements a 2-dimensional point with double precision coordinates. More...
Public Member Functions | |
mxPoint () | |
Constructs a new point at (0, 0). | |
mxPoint (Point point) | |
Constructs a new point at the location of the given point. | |
mxPoint (mxPoint point) | |
Constructs a new point at the location of the given point. | |
mxPoint (double x, double y) | |
Constructs a new point at (x, y). | |
Point | GetPoint () |
Returns the coordinates as a new point. | |
new Boolean | Equals (Object obj) |
Returns true if the given object equals this point. | |
mxPoint | Clone () |
Returns a new instance of the same point. | |
Protected Attributes | |
double | x |
Holds the x-coordinate of the point. Default is 0. | |
double | y |
Holds the y-coordinate of the point. Default is 0. | |
Properties | |
double | X [get, set] |
Sets or returns the x-coordinate of the point. | |
double | Y [get, set] |
Sets or returns the y-coordinate of the point. |
Implements a 2-dimensional point with double precision coordinates.
com::mxgraph::mxPoint::mxPoint | ( | ) | [inline] |
Constructs a new point at (0, 0).
com::mxgraph::mxPoint::mxPoint | ( | Point | point | ) | [inline] |
Constructs a new point at the location of the given point.
point | Point that specifies the location. |
com::mxgraph::mxPoint::mxPoint | ( | mxPoint | point | ) | [inline] |
Constructs a new point at the location of the given point.
point | Point that specifies the location. |
com::mxgraph::mxPoint::mxPoint | ( | double | x, | |
double | y | |||
) | [inline] |
Constructs a new point at (x, y).
x | X-coordinate of the point to be created. | |
y | Y-coordinate of the point to be created. |
mxPoint com::mxgraph::mxPoint::Clone | ( | ) | [inline] |
Returns a new instance of the same point.
Reimplemented in com::mxgraph::mxGeometry, com::mxgraph::mxRectangle, and com::mxgraph::mxCellState.
new Boolean com::mxgraph::mxPoint::Equals | ( | Object | obj | ) | [inline] |
Returns true if the given object equals this point.
Reimplemented in com::mxgraph::mxRectangle.
Point com::mxgraph::mxPoint::GetPoint | ( | ) | [inline] |
Returns the coordinates as a new point.
double com::mxgraph::mxPoint::x [protected] |
Holds the x-coordinate of the point. Default is 0.
double com::mxgraph::mxPoint::y [protected] |
Holds the y-coordinate of the point. Default is 0.
double com::mxgraph::mxPoint::X [get, set] |
Sets or returns the x-coordinate of the point.
double com::mxgraph::mxPoint::Y [get, set] |
Sets or returns the y-coordinate of the point.