AR System Java API

com.bmc.arsys.api
Class CoordinateInfo

java.lang.Object
  extended by com.bmc.arsys.api.CoordinateInfo
All Implemented Interfaces:
Serializable, Cloneable

public class CoordinateInfo
extends Object
implements Cloneable, Serializable

The CoordinateInfo class returns the location of a field, that is, the field's X and Y coordinates.

See Also:
Serialized Form

Constructor Summary
CoordinateInfo()
           
CoordinateInfo(int a, int b)
          construct a CoordinateInfo object with the provided x and y coordinate.
 
Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 int getXCoordinate()
          Returns X coordinate.
 int getYCoordinate()
          Returns Y coordinate.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setXCoordinate(int x)
          Sets X coordinate.
 void setYCoordinate(int y)
          Sets Y coordinate.
 String toString()
          Returns a string description of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinateInfo

public CoordinateInfo()

CoordinateInfo

public CoordinateInfo(int a,
                      int b)
construct a CoordinateInfo object with the provided x and y coordinate.

Parameters:
a -
b -
Method Detail

getXCoordinate

public int getXCoordinate()
Returns X coordinate.


getYCoordinate

public int getYCoordinate()
Returns Y coordinate.


setXCoordinate

public void setXCoordinate(int x)
Sets X coordinate.


setYCoordinate

public void setYCoordinate(int y)
Sets Y coordinate.


toString

public String toString()
Returns a string description of the object.

Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Use this method for checking equality between the current object and the provided one. The result is true only if the argument is not null, is of the same type and represents the same content.

Overrides:
equals in class Object
Parameters:
obj - the object that we are comparing to
Returns:
returns a boolean that tells if the two objects equal

clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Object
Returns:
returns the hash code for this instance

AR System Java API

? Copyright 2006, 2007 BMC Software, Inc.