public class MarkerLabel extends MapObject
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MarkerLabel.Property |
| Constructor and Description |
|---|
MarkerLabel()
Creates new MarkerLabel object.
|
MarkerLabel(Map map)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getColor()
Returns value of color property.
|
java.lang.String |
getFontFamily()
Returns value of fontFamily property.
|
java.lang.String |
getFontSize()
Returns value of fontSize property.
|
java.lang.String |
getFontWeight()
Returns value of fontWeight property.
|
java.lang.String |
getText()
Returns value of text property.
|
void |
setColor(java.lang.String value)
Sets new value for color property.
|
void |
setFontFamily(java.lang.String value)
Sets new value for fontFamily property.
|
void |
setFontSize(java.lang.String value)
Sets new value for fontSize property.
|
void |
setFontWeight(java.lang.String value)
Sets new value for fontWeight property.
|
void |
setText(java.lang.String value)
Sets new value for text property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updatePropertypublic MarkerLabel()
@Deprecated public MarkerLabel(Map map)
map - owner Map objectpublic java.lang.String getColor()
Represents the color of the label text. Default color is black.
setColor(java.lang.String)public void setColor(java.lang.String value)
value - new property valuegetColor()public java.lang.String getFontFamily()
Contains the font family of the label text (equivalent to the CSS font-family property).
setFontFamily(java.lang.String)public void setFontFamily(java.lang.String value)
value - new property valuegetFontFamily()public java.lang.String getFontSize()
Contains the font size of the label text (equivalent to the CSS font-size property). Default size is 14px.
setFontSize(java.lang.String)public void setFontSize(java.lang.String value)
value - new property valuegetFontSize()public java.lang.String getFontWeight()
Contains the font weight of the label text (equivalent to the CSS font-weight property).
setFontWeight(java.lang.String)public void setFontWeight(java.lang.String value)
value - new property valuegetFontWeight()public java.lang.String getText()
Contains the text to be displayed in the label. Only the first character of this string will be shown.
setText(java.lang.String)public void setText(java.lang.String value)
value - new property valuegetText()