|
|||||||||
| 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
com.mapquest.PolygonPrimitive
Describes polygons to be placed on a map. The polygon is initially defined with a collection of points. These points are the X,Y coordinates of the vertices of the polygon. The coordinates are converted into a latitude/longitude points so the annotation can be placed in the same geographical location after the map is manipulated.
ColorStyle,
FillStyle| 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 | |
PolygonPrimitive()
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 |
getFillColor()
Returns the current ColorStyle value of the fill color of the polygon. |
FillStyle |
getFillStyle()
Returns the current value of the fill style of the polygon. |
int |
hashCode()
Returns a hash code for this PolygonPrimitive. |
void |
init()
Initializes object. |
void |
setFillColor(ColorStyle lColor)
Sets the fill color of the polygon. |
void |
setFillStyle(FillStyle sStyle)
Sets the fill style of the polygon. |
| Methods inherited from class com.mapquest.LinePrimitive |
getColor, getLatLngs, getPoints, getStyle, getWidth, setColor, setLatLngs, setStyle, setWidth |
| 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 PolygonPrimitive()
| Method Detail |
public void init()
init in class LinePrimitivepublic int getClassId()
getClassId in class LinePrimitivepublic java.lang.String getClassName()
getClassName in class LinePrimitivepublic void setFillColor(ColorStyle lColor)
lColor - The ColorStyle value that the polygon fill color is to
be set topublic ColorStyle getFillColor()
public void setFillStyle(FillStyle sStyle)
sStyle - The value that the polygon fill style is to
be set to.public FillStyle getFillStyle()
public boolean equals(java.lang.Object otherObject)
equals in class LinePrimitiveotherObject - the object to compare this PolygonPrimitive against.
public int hashCode()
hashCode in class LinePrimitive
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||