|
|||||||||
| 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.TextPrimitive
Describes text to be placed on the map. The text is initially located by the X/Y coordinate. The coordinate is converted into a latitude/longitude point so the annotation can be placed in the same geographical location after the map is manipulated.
Primitive,
ColorStyle,
FontStyle,
LatLng,
Point,
TextAlignment| 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 |
| Fields inherited from interface com.mapquest.TextAlignment |
Baseline, BASELINE, Bottom, BOTTOM, Center, CENTER, Left, LEFT, Right, RIGHT, Top, TOP |
| Constructor Summary | |
TextPrimitive()
Default constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object otherObject)
Compares this object to the specified object. |
ColorStyle |
getBkgdColor()
Returns the background color of the text box |
ColorStyle |
getBoxOutlineColor()
Get RGB Outline Box Color |
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. |
java.lang.String |
getFontName()
Get Font Name |
int |
getFontSize()
Get the font size. |
long |
getMargin()
Get the margin of the Box surrounding the text. |
ColorStyle |
getOutlineColor()
Get RGB Outline Color |
FontStyle |
getStyle()
Returns the value currently assigned to member data representing the style of this object. |
java.lang.String |
getText()
Returns the text that is displayed |
int |
getTextAlignment()
Get the Text Alignment. |
LatLng |
getUpperLeftLatLng()
Gets the LatLng coordinate of the upper left corner. |
Point |
getUpperLeftPoint()
Gets the value of the upper left corner of the text. |
int |
getWidth()
Returns the width of the outline of the text box.( in 1000th of an inch) |
int |
hashCode()
Returns a hash code for this TextPrimitive. |
void |
init()
Initializes object. |
void |
setBkgdColor(ColorStyle rgbVal)
Sets the background color of the text box |
void |
setBoxOutlineColor(ColorStyle lVal)
Set RGB Outline Box Color |
void |
setColor(ColorStyle lColor)
Sets the color. |
void |
setFontName(java.lang.String strVal)
Set Font Name |
void |
setFontSize(int nVal)
Set font Size. |
void |
setMargin(long lVal)
Set the margin of the Box surrounding the text. |
void |
setOutlineColor(ColorStyle lVal)
Set RGB Outline Color |
void |
setStyle(FontStyle nStyle)
Sets the value of m_nStyle, which specifies the style of this object. |
void |
setText(java.lang.String sText)
Sets the text value to be displayed |
void |
setTextAlignment(int lVal)
Set the Text Alignment. |
void |
setUpperLeftLatLng(LatLng ll)
Sets the LatLng coordinate of the upper left corner. |
void |
setUpperLeftPoint(Point pnt)
Sets the value of the upper left corner of the text. |
void |
setWidth(int sWidth)
Sets the width of the outline of the text box.( in 1000th of an inch) |
| 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 TextPrimitive()
| 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(FontStyle nStyle)
nStyle - The new style value.public FontStyle getStyle()
public void setWidth(int sWidth)
sWidth - The width of the text box.public int getWidth()
public void setUpperLeftPoint(Point pnt)
pnt - The coordinate of the upper left corner.public Point getUpperLeftPoint()
public void setUpperLeftLatLng(LatLng ll)
ll - The LatLng of the upper left corner.public LatLng getUpperLeftLatLng()
public void setBkgdColor(ColorStyle rgbVal)
rgbVal - A long value representing the RGB value.public ColorStyle getBkgdColor()
public void setText(java.lang.String sText)
sText - A String containing the desired textpublic java.lang.String getText()
public void setBoxOutlineColor(ColorStyle lVal)
lVal - RGB Outline Box Colorpublic ColorStyle getBoxOutlineColor()
public void setOutlineColor(ColorStyle lVal)
lVal - RGB Outline Colorpublic ColorStyle getOutlineColor()
public void setFontName(java.lang.String strVal)
strVal - Font Namepublic java.lang.String getFontName()
public void setFontSize(int nVal)
nVal - new font sizepublic int getFontSize()
public void setMargin(long lVal)
lVal - new marginpublic long getMargin()
public void setTextAlignment(int lVal)
lVal - new Text Alignmentpublic int getTextAlignment()
public boolean equals(java.lang.Object otherObject)
equals in class PrimitiveotherObject - the object to compare this TextPrimitive against.
public int hashCode()
hashCode in class Primitive
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||