JPlanner Programmer's Guide
PointD Members
Constructors Fields Methods
 


Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane. Instances of this class are immutable.

The following tables list the members exposed by the PointD type.

 Public Constructors

  Name Description

PointD

Overloaded. Initializes a new instance of the PointD class.

 Public Fields

  Name Description

Empty

Represents a point with all properties set to zero.

 Public Methods

  Name Description

clone

Cloneable.clone implementation.

equals

Checks whether this point has the same coordinates as the specified object.

getX

Gets the x-coordinate of this point.

getY

Gets the y-coordinate of this point.

hashCode

Returns a hash code for the point.

offset

Overloaded. Translates this point by a specified amount.

readExternal

Externalizable.readExternal implementation.

toSize

Converts this point to a SizeD object.

toString

Converts this point to a human-readable string.

withX

Creates a new point with x-coordinate set to the specified value and y-coordinate equal to that of the current point.

withY

Creates a new point with y-coordinate set to the specified value and x-coordinate equal to that of the current point.

writeExternal

Externalizable.writeExternal implementation.

 See Also

PointD Class
com.mindfusion.common Namespace