com.mapquest
Class CenterLatLng

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

public class CenterLatLng
extends MapCommand

Stores data to center the maps on a given point specified with a latitude/longitude point.

See Also:
LatLng

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
CenterLatLng()
          Default constructor.
CenterLatLng(CenterLatLng copy)
          Copy constructor.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 LatLng getCenterLL()
          Returns the latitude/longitude values of this Center.
 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 CenterLatLng.
 void init()
          Initializes object.
 void setCenter(LatLng ll)
          Sets the latitude/longitude of the Center.
 
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

CenterLatLng

public CenterLatLng()
Default constructor.


CenterLatLng

public CenterLatLng(CenterLatLng copy)
Copy constructor.

Parameters:
copy - The latitude/longitude point that this CenterLatLng is to be set to.
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.

setCenter

public void setCenter(LatLng ll)
Sets the latitude/longitude of the Center.

Parameters:
ll - The latitude/longitude values that this Center is to be set to.

getCenterLL

public LatLng getCenterLL()
Returns the latitude/longitude values of this Center.

Returns:
The latitude/longitude values of this Center.

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 CenterLatLng object that has same attributes as this object.

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

hashCode

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

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