|
|||||||||
| 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.BestFit
Calculates the best scale and center point of a map for the given set of features in the Session. For example, if you place 20 points in a FeatureCollection object in your Session, adding a BestFit object to the Session adjusts the MapState object so that the map optimally displays all 20 points.
DTCollection| 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 | |
BestFit()
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. |
DTCollection |
getDTs()
Gets the DTCollection for this object |
boolean |
getIncludePrimitives()
Gets the IncludePrimitives member value. |
boolean |
getKeepCenter()
Returns the KeepCenter property. |
double |
getScaleAdjustmentFactor()
Gets the Scale adjustment factor member. |
boolean |
getSnapToZoomLevel()
Get the SnapToZoomLevel property. |
int |
hashCode()
Returns a hash code for this BestFit. |
void |
init()
Initializes object. |
void |
setDTs(DTCollection dts)
Sets the DTCollection for this object to the value of the collection passed in as a parameter. |
void |
setIncludePrimitives(boolean bIncludePrimitives)
Sets the IncludePrimitives member value. |
void |
setKeepCenter(boolean keepCenter)
Set the KeepCenter property. |
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 BestFit()
| Method Detail |
public void init()
init in class MapCommandpublic int getClassId()
getClassId in class MQObjectpublic java.lang.String getClassName()
getClassName in class MQObjectpublic void setDTs(DTCollection dts)
dts - The DTCollection to which this
DTCollection is to be set.public DTCollection getDTs()
public void setScaleAdjustmentFactor(double dScaleAdjFactor)
dScaleAdjFactor - The display type collection to which this
display type collection is to be set.public double getScaleAdjustmentFactor()
public void setIncludePrimitives(boolean bIncludePrimitives)
bIncludePrimitives - true or false.public boolean getIncludePrimitives()
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 BestFit against.
public int hashCode()
hashCode in class MQObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||