com.threerings.opengl.gui.util
Class Point

java.lang.Object
  extended by com.threerings.opengl.gui.util.Point
All Implemented Interfaces:
Cloneable

public class Point
extends Object
implements Cloneable

Represents the location of a component.


Field Summary
 int x
          The x position of the entity in question.
 int y
          The y position of the entity in question.
 
Constructor Summary
Point()
           
Point(int x, int y)
           
Point(Point other)
           
 
Method Summary
 Point clone()
           
 boolean equals(Object other)
           
 int hashCode()
           
 Point set(int x, int y)
          Sets the value of this point.
 Point set(Point point)
          Sets the value of this point to that of the specified other.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x
The x position of the entity in question.


y

public int y
The y position of the entity in question.

Constructor Detail

Point

public Point(int x,
             int y)

Point

public Point(Point other)

Point

public Point()
Method Detail

set

public Point set(Point point)
Sets the value of this point to that of the specified other.


set

public Point set(int x,
                 int y)
Sets the value of this point.

Returns:
a reference to this point, for chaining.

clone

public Point clone()
Overrides:
clone in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.