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

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:
point Point that specifies the location.
com::mxgraph::mxPoint::mxPoint ( mxPoint  point  )  [inline]

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

Parameters:
point Point that specifies the location.
com::mxgraph::mxPoint::mxPoint ( double  x,
double  y 
) [inline]

Constructs a new point at (x, y).

Parameters:
x X-coordinate of the point to be created.
y Y-coordinate of the point to be created.

Member Function Documentation

mxPoint com::mxgraph::mxPoint::Clone (  )  [inline]

Returns a new instance of the same point.

Returns:
Returns a clone of the 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.

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:
Generated on Mon Oct 29 20:11:50 2012 for mxGraph by  doxygen 1.6.3