public class TransitLine extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
TransitLine.Property |
Constructor and Description |
---|
TransitLine()
Creates new TransitLine object
|
TransitLine(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TransitAgency[] |
getAgencies()
Returns value of agencies property
|
java.lang.String |
getColor()
Returns value of color property
|
java.lang.String |
getIcon()
Returns value of icon property
|
java.lang.String |
getName()
Returns value of name property
|
java.lang.String |
getShortName()
Returns value of shortName property
|
java.lang.String |
getTextColor()
Returns value of textColor property
|
java.lang.String |
getUrl()
Returns value of url property
|
TransitVehicle |
getVehicle()
Returns value of vehicle property
|
void |
setAgencies(TransitAgency[] agencies)
Sets new value for agencies property
|
void |
setColor(java.lang.String value)
Sets new value for color property
|
void |
setIcon(java.lang.String value)
Sets new value for icon property
|
void |
setName(java.lang.String value)
Sets new value for name property
|
void |
setShortName(java.lang.String value)
Sets new value for shortName property
|
void |
setTextColor(java.lang.String value)
Sets new value for textColor property
|
void |
setUrl(java.lang.String value)
Sets new value for url property
|
void |
setVehicle(TransitVehicle value)
Sets new value for vehicle property
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public TransitLine()
@Deprecated public TransitLine(Map map)
map
- owner Map objectpublic TransitAgency[] getAgencies()
Contains the transit agency that operates this transit line.
setAgencies(com.teamdev.jxmaps.TransitAgency[])
public void setAgencies(TransitAgency[] agencies)
agencies
- new property valuegetAgencies()
public java.lang.String getColor()
Contains the color commonly used in signage for this transit line, represented as a hex string.
setColor(java.lang.String)
public void setColor(java.lang.String value)
value
- new property valuegetColor()
public java.lang.String getIcon()
Contains the URL for an icon associated with this line.
setIcon(java.lang.String)
public void setIcon(java.lang.String value)
value
- new property valuesetIcon(java.lang.String)
public java.lang.String getName()
Contains the full name of this transit line, e.g. "8 Avenue Local".
setName(java.lang.String)
public void setName(java.lang.String value)
value
- new property valuegetName()
public java.lang.String getShortName()
Contains the short name of this transit line, e.g. "E".
setShortName(java.lang.String)
public void setShortName(java.lang.String value)
value
- new property valuegetShortName()
public java.lang.String getTextColor()
Contains the text color commonly used in signage for this transit line, represented as a hex string.
setTextColor(java.lang.String)
public void setTextColor(java.lang.String value)
value
- new property valuegetTextColor()
public java.lang.String getUrl()
Contains the agency's URL which is specific to this transit line.
setUrl(java.lang.String)
public void setUrl(java.lang.String value)
value
- new property valuegetUrl()
public TransitVehicle getVehicle()
Contains the type of vehicle used, e.g. train or bus.
setVehicle(com.teamdev.jxmaps.TransitVehicle)
public void setVehicle(TransitVehicle value)
value
- new property valuegetVehicle()