|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.MQObject
com.mapquest.MapCommand
com.mapquest.Pan
Stores data to center the map on a given point without changing its scale. Setting the X,Y coordinates moves the map viewport that number of pixels left or right and up or down.
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 | |
Pan()
Default constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object otherObject)
Compares this object to the specified object. |
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 Pan. |
void |
init()
Initializes object. |
void |
setDeltaX(int x)
Sets the Delta X variable, which is the number of pixels that the map viewport is to be moved in the horizontal direction. |
void |
setDeltaXY(int x,
int y)
Sets the Delta X and Delta Y variables, which are the number of pixels that the map viewport is to be moved in the horizontal and vertical direction respectively. |
void |
setDeltaY(int y)
Sets the Delta Y variable, which is the number of pixels that the map viewport is to be moved in the vertical direction. |
| 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 |
public static final int CLASS_ID
public static final java.lang.String CLASS_NAME
| Constructor Detail |
public Pan()
| Method Detail |
public void init()
init in class MapCommandpublic int getClassId()
getClassId in class MQObjectpublic java.lang.String getClassName()
getClassName in class MQObjectpublic void setDeltaX(int x)
x - The number of pixels that the map viewport is to be moved in
the horizontal direction. Negative indicates movement to the
left, positive to the right.public void setDeltaY(int y)
y - The number of pixels that the map viewport is to be moved in
the vertical direction. Negative indicates movement upward,
positive downward.
public void setDeltaXY(int x,
int y)
x - The number of pixels that the map viewport is to be moved in
the horizontal direction. Negative indicates movement to the
left, positive to the right.y - The number of pixels that the map viewport is to be moved in
the vertical direction. Negative indicates movement upward,
positive downward.public boolean equals(java.lang.Object otherObject)
equals in class MQObjectotherObject - the object to compare this Pan against.
public int hashCode()
hashCode in class MQObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||