Point
Overview
Point is a class in Aspose.PSD FOSS for Java.
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
This class declares 11 methods for Point objects in Java programs.
Available methods include: Point, equals, getX, getY, hashCode, isEmpty, setX, setY, toString.
Public members are accessible to any Java application after installing the Aspose.PSD FOSS for Java package.
Properties: EMPTY, empty, x, y.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | int | Read/Write | Gets the x-coordinate of this Point. |
y | int | Read/Write | Gets the y-coordinate of this Point. |
empty | boolean | Read | Gets a value indicating whether this Point has coordinates left uninitialized. |
EMPTY | Point | Read | Represents a Point with coordinates left uninitialized. |
Methods
| Signature | Description |
|---|---|
Point(x: int, y: int) | Initializes a new instance of the Point structure with the specified coordinates. |
Point() | Default constructor leaving coordinates uninitialized (0,0). |
getX() → int | Gets the x-coordinate of this Point. |
setX(x: int) | Sets the x-coordinate of this Point. |
getY() → int | Gets the y-coordinate of this Point. |
setY(y: int) | Sets the y-coordinate of this Point. |
isEmpty() → boolean | Gets a value indicating whether this Point has coordinates left uninitialized. |
equals(other: Point) → boolean | Determines whether the specified point is equal to this point. |
equals(obj: Object) → boolean | Calls equals(obj) on this Point instance. |
hashCode() → int | Calls hashCode on this Point instance. |
toString() → String | Calls toString on this Point instance. |