public class PolygonOptions extends MapObject
Constructor and Description |
---|
PolygonOptions()
Creates new PolygonOptions object.
|
PolygonOptions(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.
|
java.lang.String |
getFillColor()
Returns value of fillColor property.
|
double |
getFillOpacity()
Returns value of fillOpacity property.
|
boolean |
getGeodesic()
Returns value of geodesic property.
|
LatLng[][] |
getPaths()
Returns value of paths property.
|
java.lang.String |
getStrokeColor()
Returns value of strokeColor property.
|
double |
getStrokeOpacity()
Returns value of strokeOpacity property.
|
StrokePosition |
getStrokePosition()
Returns value of strokePosition 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 |
setFillColor(java.lang.String value)
Sets new value for fillColor property.
|
void |
setFillOpacity(double value)
Sets new value for fillOpacity property.
|
void |
setGeodesic(boolean value)
Sets new value for geodesic property.
|
void |
setPaths(LatLng[][] items)
Sets new value for paths property.
|
void |
setStrokeColor(java.lang.String value)
Sets new value for strokeColor property.
|
void |
setStrokeOpacity(double value)
Sets new value for strokeOpacity property.
|
void |
setStrokePosition(StrokePosition value)
Sets new value for strokePosition 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 PolygonOptions()
@Deprecated public PolygonOptions(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 polygon are interpreted as geodesic and will follow the curvature of the Earth. When false, edges of the polygon are rendered as straight lines in screen space. Note that the shape of a geodesic polygon 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 polygon is visible on the map. Defaults to true.
setVisible(boolean)
public void setVisible(boolean value)
value
- new property valuegetVisible()
public LatLng[][] getPaths()
Represents the ordered sequence of coordinates that designates a closed loop. Unlike polylines, a polygon may consist of one or more paths. As a result, the paths property may specify one or more arrays of LatLng coordinates. Paths are closed automatically; do not repeat the first vertex of the path as the last vertex. Simple polygons may be defined using a single array of LatLngs. More complex polygons may specify an array of arrays.
setPaths(com.teamdev.jxmaps.LatLng[][])
public void setPaths(LatLng[][] items)
items
- new property valuegetPaths()
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 java.lang.String getFillColor()
Contains the fill color. All CSS3 colors are supported except for extended named colors.
setFillColor(java.lang.String)
public void setFillColor(java.lang.String value)
value
- new property valuegetFillColor()
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 getFillOpacity()
Contains the fill opacity between 0.0 and 1.0
setFillOpacity(double)
public void setFillOpacity(double value)
value
- new property valuegetFillOpacity()
public double getZIndex()
Contains the zIndex compared to other polys.
setZIndex(double)
public void setZIndex(double value)
value
- new property valuegetZIndex()
public StrokePosition getStrokePosition()
Contains the stroke position. Defaults to CENTER. This property is not supported on Internet Explorer 8 and earlier.
setStrokePosition(com.teamdev.jxmaps.StrokePosition)
public void setStrokePosition(StrokePosition value)
value
- new property valuegetStrokePosition()