EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.model
Class Point

java.lang.Object
  extended by echopoint.model.Point
All Implemented Interfaces:
Serializable

public class Point
extends Object
implements Serializable

A model object that represents a point in cartesian co-ordinate system.

Note: Development of this component was sponsored by TCN Broadcasting. We are grateful for their support and sponsorship.

Version:
$Id: Point.java 72 2008-10-21 02:51:23Z sptrakesh $
Author:
Rakesh Vidyadharan 2008-10-20
See Also:
Serialized Form

Field Summary
 int x
          The x co-ordinate of the point.
 int y
          The y co-ordinate of the point.
 
Constructor Summary
Point(int x, int y)
           
 
Method Summary
 boolean equals(Object o)
          Compare the specified object with this for equality.
 int getX()
          Accessor for property 'x'.
 int getY()
          Accessor for property 'y'.
 int hashCode()
          Compute a hash code for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public final int x
The x co-ordinate of the point.


y

public final int y
The y co-ordinate of the point.

Constructor Detail

Point

public Point(int x,
             int y)
Method Detail

equals

public boolean equals(Object o)
Compare the specified object with this for equality.

Overrides:
equals in class Object
Parameters:
o - The object that is to be compared.
Returns:
Returns true if the objects are equivalent.

hashCode

public int hashCode()
Compute a hash code for this object.

Overrides:
hashCode in class Object
Returns:
The hash code value.

getY

public int getY()
Accessor for property 'y'.

Returns:
Value for property 'y'.

getX

public int getX()
Accessor for property 'x'.

Returns:
Value for property 'x'.

EchoPoint API - 3.0.0b5
App Webcontainer