|
|||||||||
| 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.RectanglePrimitive
Describes rectangular annotations to be placed on the map. The rectangle is initially located by the Upper Left and Lower Right coordinates. The coordinates are then converted into latitude/longitude points so the rectangle can be placed in the same geographical location after the map is manipulated.
ColorStyle,
FillStyle,
LatLng,
Point,
PenStyle| 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 | |
RectanglePrimitive()
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. |
ColorStyle |
getFillColor()
Get ColorStyle to fill this polygon with. |
FillStyle |
getFillStyle()
Get fill style of the primitive |
LatLng |
getLowerRightLatLng()
Retrieves the LatLng of the Lower Right corner of this rectangle. |
Point |
getLowerRightPoint()
Retrieves the Lower Right corner of this rectangle. |
PenStyle |
getStyle()
Returns the value currently assigned to member data representing the style of this object. |
LatLng |
getUpperLeftLatLng()
Retrieves the LatLng of the Upper Left corner of this rectangle. |
Point |
getUpperLeftPoint()
Retrieves the Upper Left corner of this rectangle. |
int |
getWidth()
Returns the width (in 1000th of an inch) of the outline. |
int |
hashCode()
Returns a hash code for this RectanglePrimitive. |
void |
init()
Initializes object. |
void |
setColor(ColorStyle lColor)
Sets the color. |
void |
setFillColor(ColorStyle lColor)
Set the ColorStyle to fill this polygon with. |
void |
setFillStyle(FillStyle nStyle)
Set fill style of the primitive |
void |
setLowerRightLatLng(LatLng ll)
Sets the values of the Lower Right LatLng field. |
void |
setLowerRightPoint(Point pnt)
Sets the values of the Lower Right corner of this rectangle. |
void |
setStyle(PenStyle nStyle)
Sets the value of m_nStyle, which specifies the style of this object. |
void |
setUpperLeftLatLng(LatLng ll)
Sets the values of the Upper Left lat/long field. |
void |
setUpperLeftPoint(Point pnt)
Sets the values of the Upper Left corner of this rectangle. |
void |
setWidth(int sWidth)
Sets the width (in 1000th of an inch) of the outline. |
java.lang.String |
toString()
Returns a string built from the class name and contents 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 |
| 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 RectanglePrimitive()
| 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 sWidth)
sWidth - The width of the outline.public int getWidth()
public void setUpperLeftPoint(Point pnt)
pnt - The point of the Upper Left corner.public void setLowerRightPoint(Point pnt)
pnt - The point of the Lower Right corner.public Point getUpperLeftPoint()
public Point getLowerRightPoint()
public void setUpperLeftLatLng(LatLng ll)
ll - The LatLng of the Upper Left coordinate.public void setLowerRightLatLng(LatLng ll)
ll - The LatLng of the Lower Right coordinate.public LatLng getUpperLeftLatLng()
public LatLng getLowerRightLatLng()
public void setFillColor(ColorStyle lColor)
lColor - a ColorStyle formatted colorpublic ColorStyle getFillColor()
public void setFillStyle(FillStyle nStyle)
nStyle - The fill stylepublic FillStyle getFillStyle()
public java.lang.String toString()
toString in class MQObjectpublic boolean equals(java.lang.Object otherObject)
equals in class PrimitiveotherObject - the object to compare this RectanglePrimitive against.
public int hashCode()
hashCode in class Primitive
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||