public class TransitVehicle extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
TransitVehicle.Property |
Constructor and Description |
---|
TransitVehicle()
Creates new TransitVehicle object.
|
TransitVehicle(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIcon()
Returns value of icon property.
|
java.lang.String |
getLocalIcon()
Returns value of localIcon property.
|
java.lang.String |
getName()
Returns value of name property.
|
void |
setIcon(java.lang.String value)
Sets new value for icon property.
|
void |
setLocalIcon(java.lang.String value)
Sets new value for localIcon property.
|
void |
setName(java.lang.String value)
Sets new value for name property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public TransitVehicle()
@Deprecated public TransitVehicle(Map map)
map
- owner Map objectpublic java.lang.String getName()
Contains a name for this type of TransitVehicle, e.g. "Train" or "Bus".
setName(java.lang.String)
public void setName(java.lang.String value)
value
- new property valuegetName()
public java.lang.String getIcon()
Contains a URL for an icon that corresponds to the type of vehicle used on this line.
setIcon(java.lang.String)
public void setIcon(java.lang.String value)
value
- new property valuegetIcon()
public java.lang.String getLocalIcon()
Contains a URL for an icon that corresponds to the type of vehicle used in this region instead of the more general icon.
setLocalIcon(java.lang.String)
public void setLocalIcon(java.lang.String value)
value
- new property valuegetLocalIcon()