public class Point
extends com.jniwrapper.Structure
POINT
structure.Constructor and Description |
---|
Point()
Constructs a point with zero x- and y-coordinates.
|
Point(long x,
long y)
Constructs a new point with the given x and y values.
|
Point(Point that)
Constructs a new point with the same coordinates as in the passed one.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o)
Compares two points.
|
long |
getX() |
long |
getY() |
int |
hashCode() |
void |
setX(long x) |
void |
setY(long y) |
acceptIOPerformer, addMembers, computeLength, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
public Point()
public Point(long x, long y)
public Point(Point that)
that
- a point to copy the coordinates from.public long getX()
public void setX(long x)
public long getY()
public void setY(long y)
public java.lang.Object clone()
clone
in class com.jniwrapper.Structure
public boolean equals(java.lang.Object o)
equals
in class com.jniwrapper.Structure
o
- another instance of Point.public int hashCode()
hashCode
in class com.jniwrapper.Parameter