javax.media.nativewindow.util
Class Point

java.lang.Object
  extended by javax.media.nativewindow.util.Point
All Implemented Interfaces:
WriteCloneable, Cloneable, PointImmutable

public class Point
extends Object
implements Cloneable, PointImmutable


Constructor Summary
Point()
           
Point(int x, int y)
           
 
Method Summary
 Object clone()
           
 Object cloneMutable()
           
 boolean equals(Object obj)
          Checks whether two points objects are equal.
 int getX()
           
 int getY()
           
 int hashCode()
           
 void setX(int x)
           
 void setY(int y)
           
 String toString()
           
 Point translate(int dx, int dy)
           
 Point translate(Point pd)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(int x,
             int y)

Point

public Point()
Method Detail

cloneMutable

public Object cloneMutable()
Specified by:
cloneMutable in interface WriteCloneable

clone

public Object clone()
Overrides:
clone in class Object

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

setX

public void setX(int x)

setY

public void setY(int y)

translate

public Point translate(Point pd)

translate

public Point translate(int dx,
                       int dy)


Copyright 2010 JogAmp Community.