|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.MQObject
com.mapquest.Primitive
com.mapquest.LinePrimitive
Describes linear annotations to be placed on the map. The line is converted into latitude/longitude points so it can be placed in the same geographical location after the map is manipulated.
ColorStyle,
Primitive,
PenStyle,
PointCollection,
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 | |
LinePrimitive()
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. |
ColorStyle |
getColor()
Returns the value of m_color. |
LatLngCollection |
getLatLngs()
Returns the LatLngCollection of coordinates of the Line. |
PointCollection |
getPoints()
Returns the PointCollection of coordinates of the Line. |
PenStyle |
getStyle()
Returns the value currently assigned to member data representing the style of this object. |
int |
getWidth()
Returns the value currently assigned to member data representing the width of this object. |
int |
hashCode()
Returns a hash code for this LinePrimitive. |
void |
init()
Initializes object. |
void |
setColor(ColorStyle lColor)
Sets the color. |
void |
setLatLngs(LatLngCollection ll)
Sets the value of m_LLArray to the specified LatLng collection of coordinates of the Line. |
void |
setStyle(PenStyle nStyle)
Sets the value of m_nStyle, which specifies the style of this object. |
void |
setWidth(int nWidth)
Sets the value of m_nWidth, which specifies the width of this object. |
| Methods inherited from class com.mapquest.Primitive |
getCoordinateType, getDrawTrigger, getKey, getOpacity, getTriggerDT, setCoordinateType, setDrawTrigger, setKey, setOpacity, setTriggerDT |
| 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 LinePrimitive()
| Method Detail |
public void init()
init in class Primitivepublic int getClassId()
getClassId in class MQObjectpublic java.lang.String getClassName()
getClassName in class MQObjectpublic void setColor(ColorStyle lColor)
lColor - The new color to be assigned to m_colorpublic ColorStyle getColor()
public void setStyle(PenStyle nStyle)
nStyle - The new style value.public PenStyle getStyle()
public void setWidth(int nWidth)
nWidth - The new width value.public int getWidth()
public PointCollection getPoints()
public LatLngCollection getLatLngs()
public void setLatLngs(LatLngCollection ll)
LatLngCollection.removeAll().
Calls LatLngCollection.append(MQObjectCollection).
ll - specified LatLng collection.MQObjectCollection.removeAll(),
MQObjectCollection.append(MQObjectCollection)public boolean equals(java.lang.Object otherObject)
equals in class PrimitiveotherObject - the object to compare this LinePrimitive against.
public int hashCode()
hashCode in class Primitive
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||