|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.MQObject
com.mapquest.MapState
Defines the characteristics of a map. It includes such information as the map name, the coverage name, the latitude/longitude of the map Center, the map scale, and the image size.
LatLng,
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 | |
MapState()
Default constructor. |
|
MapState(MapState map)
Copy constructor. |
|
| Method Summary | |
void |
copy(MapState map)
Copy function, reassigns all the values. |
boolean |
equals(java.lang.Object otherObject)
Compares this object to the specified object. |
LatLng |
getCenter()
Returns the Center point of the map associated with this MapState object. |
int |
getClassId()
Returns the numeric id of this class. |
java.lang.String |
getClassName()
Returns the text name of this class. |
java.lang.String |
getCoverageName()
Returns the coverage name of the map associated with this MapState object. |
double |
getHeightInches()
Returns the height of the generated map in inches. |
int |
getHeightPixels()
Returns the height of the generated map in pixels. |
int |
getHeightPixels(int dpi)
Returns the height of the generated map in pixels. |
java.lang.String |
getMapName()
Returns the map name of the map associated with this MapState object. |
int |
getMapScale()
Returns the scale of the map associated with this MapState object. |
double |
getWidthInches()
Returns the width of the generated map in inches. |
int |
getWidthPixels()
Returns the width of the generated map in pixels. |
int |
getWidthPixels(int dpi)
Returns the width of the generated map in pixels. |
int |
hashCode()
Returns a hash code for this MapState. |
void |
init()
Initializes object. |
void |
setCenter(LatLng ll)
Sets the Center point of the map associated with this MapState object. |
void |
setCoverageName(java.lang.String strCovId)
Sets the coverage name for the map associated with this MapState object. |
void |
setHeightInches(double dHeight)
Sets the height of the generated map in inches. |
void |
setHeightPixels(int iHeight)
Sets the height of the generated map in pixels. |
void |
setHeightPixels(int iHeight,
int dpi)
Sets the height of the generated map in pixels. |
void |
setMapName(java.lang.String strName)
Sets the map name of the map associated with this MapState object. |
void |
setMapScale(int nNewScale)
Sets the scale of the map associated with this MapState object. |
void |
setWidthInches(double dWidth)
Sets the width of the generated map in inches. |
void |
setWidthPixels(int iWidth)
Sets the width of the generated map in pixels. |
void |
setWidthPixels(int iWidth,
int dpi)
Sets the width of the generated map in pixels. |
| 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 MapState()
public MapState(MapState map)
| Method Detail |
public void copy(MapState map)
public void init()
init in class MQObjectpublic int getClassId()
getClassId in class MQObjectpublic java.lang.String getClassName()
getClassName in class MQObjectpublic void setMapName(java.lang.String strName)
strName - The map name for the map associated with this
MapState object.public void setCoverageName(java.lang.String strCovId)
strCovId - The coverage name of the map associated with this
MapState object.public void setCenter(LatLng ll)
ll - The Center point for the map associated with this
MapState object.public void setWidthInches(double dWidth)
dWidth - double value specifying the width
of the map in inches.public void setHeightInches(double dHeight)
dHeight - double value specifying the height
of the map in inches.public double getWidthInches()
public double getHeightInches()
public void setWidthPixels(int iWidth)
iWidth - int value specifying the width
of the map in pixels.public void setHeightPixels(int iHeight)
iHeight - int value specifying the height
of the map in pixels.
public void setWidthPixels(int iWidth,
int dpi)
iWidth - int value specifying the width
of the map in pixels.dpi - int value specifying the DPI
of the image, used to convert from
inches to pixels.
public void setHeightPixels(int iHeight,
int dpi)
iHeight - int value specifying the height
of the map in pixels.dpi - int value specifying the DPI
of the image, used to convert from
inches to pixels.public int getWidthPixels()
public int getHeightPixels()
public int getWidthPixels(int dpi)
dpi - int value specifying the DPI used to convert
image size from inches to pixels.public int getHeightPixels(int dpi)
dpi - int value specifying the DPI used to convert
image size from inches to pixels.public void setMapScale(int nNewScale)
nNewScale - The new scale value for the map associated with this
MapState object.public java.lang.String getMapName()
public java.lang.String getCoverageName()
public LatLng getCenter()
public int getMapScale()
public boolean equals(java.lang.Object otherObject)
equals in class MQObjectotherObject - the object to compare this MapState against.
public int hashCode()
hashCode in class MQObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||