public class Distance extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
Distance.Property |
Constructor and Description |
---|
Distance()
Creates new Distance object.
|
Distance(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Returns value of text property.
|
double |
getValue()
Returns value of value property.
|
void |
setText(java.lang.String value)
Sets new value for text property.
|
void |
setValue(double value)
Sets new value for value property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public Distance()
@Deprecated public Distance(Map map)
map
- owner Map objectpublic java.lang.String getText()
Represents a string representation of the distance value, using the UnitSystem specified in the request.
setText(java.lang.String)
public void setText(java.lang.String value)
value
- new property valuegetText()
public double getValue()
Represents the distance in meters.
setValue(double)
public void setValue(double value)
value
- new property valuegetValue()