org.jtgl.core
Class JTGLPoint

java.lang.Object
  extended by org.jtgl.core.JTGLPoint

public class JTGLPoint
extends java.lang.Object

Point primitive

Author:
Manuel Polo (manuel_polo at yahoo dot es)

Constructor Summary
JTGLPoint()
           
JTGLPoint(int x, int y)
          Creates a new instance of JTGLPoint
JTGLPoint(JTGLPoint point)
           
 
Method Summary
 void copy(JTGLPoint from)
           
 boolean equals(java.lang.Object obj)
           
 JTGLPoint getClone()
           
 int getX()
           
 int getY()
           
 void setLocation(int x, int y)
           
 void setLocation(JTGLPoint point)
           
 java.lang.String toString()
           
 void translate(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JTGLPoint

public JTGLPoint()

JTGLPoint

public JTGLPoint(int x,
                 int y)
Creates a new instance of JTGLPoint


JTGLPoint

public JTGLPoint(JTGLPoint point)
Method Detail

setLocation

public void setLocation(int x,
                        int y)

setLocation

public void setLocation(JTGLPoint point)

translate

public void translate(int x,
                      int y)

getX

public int getX()

getY

public int getY()

copy

public void copy(JTGLPoint from)

getClone

public JTGLPoint getClone()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object