mxGraph
Public Member Functions | Protected Attributes | Properties | List of all members
com.mxgraph.mxPoint Class Reference

Implements a 2-dimensional point with double precision coordinates. More...

Inheritance diagram for com.mxgraph.mxPoint:
com.mxgraph.mxRectangle com.mxgraph.mxCellState com.mxgraph.mxGeometry

Public Member Functions

 mxPoint ()
 Constructs a new point at (0, 0). More...
 
 mxPoint (Point point)
 Constructs a new point at the location of the given point. More...
 
 mxPoint (mxPoint point)
 Constructs a new point at the location of the given point. More...
 
 mxPoint (double x, double y)
 Constructs a new point at (x, y). More...
 
Point GetPoint ()
 Returns the coordinates as a new point. More...
 
new Boolean Equals (Object obj)
 Returns true if the given object equals this point. More...
 
mxPoint Clone ()
 Returns a new instance of the same point. More...
 

Protected Attributes

double x
 Holds the x-coordinate of the point. Default is 0. More...
 
double y
 Holds the y-coordinate of the point. Default is 0. More...
 

Properties

double X [get, set]
 Sets or returns the x-coordinate of the point. More...
 
double Y [get, set]
 Sets or returns the y-coordinate of the point. More...
 

Detailed Description

Implements a 2-dimensional point with double precision coordinates.

Constructor & Destructor Documentation

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.

Parameters
pointPoint that specifies the location.
com.mxgraph.mxPoint.mxPoint ( mxPoint  point)
inline

Constructs a new point at the location of the given point.

Parameters
pointPoint that specifies the location.
com.mxgraph.mxPoint.mxPoint ( double  x,
double  y 
)
inline

Constructs a new point at (x, y).

Parameters
xX-coordinate of the point to be created.
yY-coordinate of the point to be created.

Member Function Documentation

mxPoint com.mxgraph.mxPoint.Clone ( )
inline
new Boolean com.mxgraph.mxPoint.Equals ( Object  obj)
inline

Returns true if the given object equals this point.

Returns
Returns true if obj is equal.

References com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.

Point com.mxgraph.mxPoint.GetPoint ( )
inline

Returns the coordinates as a new point.

Returns
Returns a new point for the location.

Member Data Documentation

double com.mxgraph.mxPoint.x
protected

Holds the x-coordinate of the point. Default is 0.

Referenced by com.mxgraph.mxRectangle.Add(), and com.mxgraph.mxCellState.Clone().

double com.mxgraph.mxPoint.y
protected

Holds the y-coordinate of the point. Default is 0.

Referenced by com.mxgraph.mxRectangle.Add(), and com.mxgraph.mxCellState.Clone().

Property Documentation

double com.mxgraph.mxPoint.X
getset
double com.mxgraph.mxPoint.Y
getset

The documentation for this class was generated from the following file: