com.mapquest
Class ZoomOut

java.lang.Object
  extended bycom.mapquest.MQObject
      extended bycom.mapquest.MapCommand
          extended bycom.mapquest.ZoomOut
All Implemented Interfaces:
java.lang.Cloneable

public class ZoomOut
extends MapCommand

Stores data to zoom out one level and center the map on a given point. Setting the X,Y coordinates to the invalid Point results in a zoom without changing the Center point.

See Also:
Point

Field Summary
static int CLASS_ID
           
static java.lang.String CLASS_NAME
           
 
Fields inherited from class com.mapquest.MQObject
DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION
 
Constructor Summary
ZoomOut()
          Default constructor.
ZoomOut(ZoomOut copy)
          Copy constructor.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 Point getCenter()
          Gets the point that is to be the new of Center of the zoomed area.
 int getClassId()
          Returns the numeric id of this class.
 java.lang.String getClassName()
          Returns the text name of this class.
 int hashCode()
          Returns a hash code for this ZoomOut.
 void init()
          Initializes object.
 void setCenter(Point c)
          Sets the point that is to be the new of Center of the zoomed area.
 
Methods inherited from class com.mapquest.MQObject
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_ID

public static final int CLASS_ID
See Also:
Constant Field Values

CLASS_NAME

public static final java.lang.String CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

ZoomOut

public ZoomOut()
Default constructor.


ZoomOut

public ZoomOut(ZoomOut copy)
Copy constructor.

Parameters:
copy - The ZoomOut object that is to be copied into this ZoomOut object.
Method Detail

init

public void init()
Initializes object.

Overrides:
init in class MapCommand

getClassId

public int getClassId()
Returns the numeric id of this class.

Overrides:
getClassId in class MQObject
Returns:
the numeric id of this class.

getClassName

public java.lang.String getClassName()
Returns the text name of this class.

Overrides:
getClassName in class MQObject
Returns:
the text name of this class.

getCenter

public Point getCenter()
Gets the point that is to be the new of Center of the zoomed area.

Returns:
Point or new center.

setCenter

public void setCenter(Point c)
Sets the point that is to be the new of Center of the zoomed area.

Parameters:
c - The point that is to be the new Center of the zoomed area.

equals

public boolean equals(java.lang.Object otherObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is a ZoomOut object that has same attributes as this object.

Overrides:
equals in class MQObject
Parameters:
otherObject - the object to compare this ZoomOut against.
Returns:
true if the ZoomOut objects are equal; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this ZoomOut.

Overrides:
hashCode in class MQObject
Returns:
a hash code value for this ZoomOut.