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

◆ mxPoint() [1/4]

com.mxgraph.mxPoint.mxPoint ( )
inline

Constructs a new point at (0, 0).

◆ mxPoint() [2/4]

com.mxgraph.mxPoint.mxPoint ( Point  point)
inline

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

Parameters
pointPoint that specifies the location.

◆ mxPoint() [3/4]

com.mxgraph.mxPoint.mxPoint ( mxPoint  point)
inline

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

Parameters
pointPoint that specifies the location.

◆ mxPoint() [4/4]

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

◆ Clone()

mxPoint com.mxgraph.mxPoint.Clone ( )
inline

◆ Equals()

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.

◆ GetPoint()

Point com.mxgraph.mxPoint.GetPoint ( )
inline

Returns the coordinates as a new point.

Returns
Returns a new point for the location.

Member Data Documentation

◆ x

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().

◆ y

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

◆ X

double com.mxgraph.mxPoint.X
getset

◆ Y

double com.mxgraph.mxPoint.Y
getset

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