javax.media.nativewindow.util
Class Point
java.lang.Object
javax.media.nativewindow.util.Point
- All Implemented Interfaces:
- com.jogamp.common.type.WriteCloneable, Cloneable, Comparable<PointImmutable>, PointImmutable
public class Point
- extends Object
- implements Cloneable, PointImmutable
Point
public Point(int x,
int y)
Point
public Point()
cloneMutable
public Object cloneMutable()
- Specified by:
cloneMutable in interface com.jogamp.common.type.WriteCloneable
clone
public Object clone()
- Overrides:
clone in class Object
compareTo
public int compareTo(PointImmutable d)
- Description copied from interface:
PointImmutable
Compares the square of the position.
- Specified by:
compareTo in interface Comparable<PointImmutable>- Specified by:
compareTo in interface PointImmutable
equals
public boolean equals(Object obj)
- Description copied from interface:
PointImmutable
- Checks whether two points objects are equal. Two instances
of
PointReadOnly are equal if the two components
y and x are equal.
- Specified by:
equals in interface PointImmutable- Overrides:
equals in class Object
- Returns:
true if the two points are equal;
otherwise false.
getX
public final int getX()
- Specified by:
getX in interface PointImmutable
getY
public final int getY()
- Specified by:
getY in interface PointImmutable
hashCode
public int hashCode()
- Specified by:
hashCode in interface PointImmutable- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
set
public final void set(int x,
int y)
setX
public final void setX(int x)
setY
public final void setY(int y)
translate
public final Point translate(Point pd)
translate
public final Point translate(int dx,
int dy)
scale
public final Point scale(int sx,
int sy)
Copyright 2010 JogAmp Community.