public class PolylineOptions extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
PolylineOptions.Property |
Constructor and Description |
---|
PolylineOptions()
Creates new PolylineOptions object.
|
PolylineOptions(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getClickable()
Returns value of clickable property.
|
boolean |
getDraggable()
Returns value of draggable property.
|
boolean |
getEditable()
Returns value of editable property.
|
boolean |
getGeodesic()
Returns value of geodesic property.
|
IconSequence[] |
getIcons()
Returns value of icons property.
|
LatLng[] |
getPath()
Returns value of path property.
|
java.lang.String |
getStrokeColor()
Returns value of strokeColor property.
|
double |
getStrokeOpacity()
Returns value of strokeOpacity property.
|
double |
getStrokeWeight()
Returns value of strokeWeight property.
|
boolean |
getVisible()
Returns value of visible property.
|
double |
getZIndex()
Returns value of zIndex property.
|
void |
setClickable(boolean value)
Sets new value for clickable property.
|
void |
setDraggable(boolean value)
Sets new value for draggable property.
|
void |
setEditable(boolean value)
Sets new value for editable property.
|
void |
setGeodesic(boolean value)
Sets new value for geodesic property.
|
void |
setIcons(IconSequence[] icons)
Sets new value for icons property.
|
void |
setPath(LatLng[] items)
Sets new value for path property.
|
void |
setStrokeColor(java.lang.String value)
Sets new value for strokeColor property.
|
void |
setStrokeOpacity(double value)
Sets new value for strokeOpacity property.
|
void |
setStrokeWeight(double value)
Sets new value for strokeWeight property.
|
void |
setVisible(boolean value)
Sets new value for visible property.
|
void |
setZIndex(double value)
Sets new value for zIndex property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public PolylineOptions()
@Deprecated public PolylineOptions(Map map)
map
- owner Map objectpublic boolean getClickable()
Indicates whether this Polygon handles mouse events. Defaults to true.
setClickable(boolean)
public void setClickable(boolean value)
value
- new property valuegetClickable()
public boolean getDraggable()
If set to true, the user can drag this shape over the map. The geodesic property defines the mode of dragging. Defaults to false.
setDraggable(boolean)
public void setDraggable(boolean value)
value
- new property valuegetDraggable()
public boolean getEditable()
If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment. Defaults to false.
setEditable(boolean)
public void setEditable(boolean value)
value
- new property valuegetEditable()
public boolean getGeodesic()
When true, edges of the polyline are interpreted as geodesic and will follow the curvature of the Earth. When false, edges of the polyline are rendered as straight lines in screen space. Note that the shape of a geodesic polyline may appear to change when dragged, as the dimensions are maintained relative to the surface of the earth. Defaults to false.
setGeodesic(boolean)
public void setGeodesic(boolean value)
value
- new property valuegetGeodesic()
public boolean getVisible()
Indicates whether this polyline is visible on the map. Defaults to true.
setVisible(boolean)
public void setVisible(boolean value)
value
- new property valuegetVisible()
public IconSequence[] getIcons()
Contains the icons to be rendered along the polyline.
setIcons(com.teamdev.jxmaps.IconSequence[])
public void setIcons(IconSequence[] icons)
icons
- new property valuegetIcons()
public LatLng[] getPath()
Contains the ordered sequence of coordinates of the Polyline.
setPath(com.teamdev.jxmaps.LatLng[])
public void setPath(LatLng[] items)
items
- new property valuegetPath()
public java.lang.String getStrokeColor()
Contains the stroke color. All CSS3 colors are supported except for extended named colors.
setStrokeColor(java.lang.String)
public void setStrokeColor(java.lang.String value)
value
- new property valuegetStrokeColor()
public double getStrokeWeight()
The stroke width in pixels.
setStrokeWeight(double)
public void setStrokeWeight(double value)
value
- new property valuegetStrokeWeight()
public double getStrokeOpacity()
Contains the stroke opacity between 0.0 and 1.0
setStrokeOpacity(double)
public void setStrokeOpacity(double value)
value
- new property valuegetStrokeOpacity()
public double getZIndex()
Contains the zIndex compared to other polys.
setZIndex(double)
public void setZIndex(double value)
value
- new property valuegetZIndex()