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

NameTypeAccessDescription
xintRead/WriteGets the x-coordinate of this Point.
yintRead/WriteGets the y-coordinate of this Point.
emptybooleanReadGets a value indicating whether this Point has coordinates left uninitialized.
EMPTYPointReadRepresents a Point with coordinates left uninitialized.

Methods

SignatureDescription
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() → intGets the x-coordinate of this Point.
setX(x: int)Sets the x-coordinate of this Point.
getY() → intGets the y-coordinate of this Point.
setY(y: int)Sets the y-coordinate of this Point.
isEmpty() → booleanGets a value indicating whether this Point has coordinates left uninitialized.
equals(other: Point) → booleanDetermines whether the specified point is equal to this point.
equals(obj: Object) → booleanCalls equals(obj) on this Point instance.
hashCode() → intCalls hashCode on this Point instance.
toString() → StringCalls toString on this Point instance.

See Also