mxGraph
Public Member Functions | Protected Attributes | Properties
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

List of all members.

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.

Detailed Description

Implements a 2-dimensional point with double precision coordinates.


Constructor & Destructor Documentation

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

Returns a new instance of the same point.

Returns:
Returns a clone of the point.

Reimplemented in com.mxgraph.mxCellState, com.mxgraph.mxGeometry, and com.mxgraph.mxRectangle.

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.

Reimplemented in com.mxgraph.mxRectangle.

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.

double com.mxgraph.mxPoint.y [protected]

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


Property Documentation

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.


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