|
|||||||||
| 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.BestFitLL
Calculates the best scale and center point of a map for the given collection Lat/Lngs. Adding a BestFitLL object to the Session adjusts the MapState object so that the map optimally displays all Lat/Lngs in the LatLngCollection set in the BestFitLL object.
LatLngCollection| 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 | |
BestFitLL()
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. |
boolean |
getKeepCenter()
Returns the KeepCenter property. |
LatLngCollection |
getLatLngs()
Gets the LatLngCollection for this object |
double |
getScaleAdjustmentFactor()
Gets the Scale adjustment factor member. |
boolean |
getSnapToZoomLevel()
Get the SnapToZoomLevel property. |
int |
hashCode()
Returns a hash code for this BestFitLL. |
void |
init()
Initializes object. |
void |
setKeepCenter(boolean keepCenter)
Set the KeepCenter property. |
void |
setLatLngs(LatLngCollection lls)
Sets the LatLngCollection for this object to the value of the collection passed in as a parameter. |
void |
setScaleAdjustmentFactor(double dScaleAdjFactor)
Sets the Scale adjustment factor, used to increase the bounding rect enclosing the points to ensure their optimal visibility. |
void |
setSnapToZoomLevel(boolean bSnapToZoomLevel)
Set the SnapToZoomLevel property. |
| 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 BestFitLL()
| Method Detail |
public void init()
init in class MapCommandpublic int getClassId()
getClassId in class MQObjectpublic java.lang.String getClassName()
getClassName in class MQObjectpublic void setLatLngs(LatLngCollection lls)
lls - The LatLngCollection to which this
LatLngCollection is to be set.public LatLngCollection getLatLngs()
public void setScaleAdjustmentFactor(double dScaleAdjFactor)
dScaleAdjFactor - Double value to set the scale adjustment factor member.public double getScaleAdjustmentFactor()
public boolean getKeepCenter()
public void setKeepCenter(boolean keepCenter)
keepCenter - the value to determine whether or not to keep the center point.public boolean getSnapToZoomLevel()
public void setSnapToZoomLevel(boolean bSnapToZoomLevel)
bSnapToZoomLevel - The SnapToZoomLevel flagpublic boolean equals(java.lang.Object otherObject)
equals in class MQObjectotherObject - the object to compare this BestFitLL against.
public int hashCode()
hashCode in class MQObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||