public class PolygonOptions
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PolygonOptions() |
PolygonOptions(boolean clickable,
boolean editable) |
PolygonOptions(boolean clickable,
boolean editable,
java.lang.String fillColor,
java.lang.Double fillOpacity) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFillColor() |
java.lang.Double |
getFillOpacity() |
java.lang.String |
getStrokeColor() |
java.lang.Double |
getStrokeOpacity() |
java.lang.Integer |
getStrokeWeight() |
java.lang.Integer |
getZIndex() |
boolean |
isClickable() |
boolean |
isEditable() |
boolean |
isGeodesic() |
boolean |
isVisible() |
void |
setClickable(boolean clickable)
Flag defining whether newly created polygon should handle click events.
|
void |
setEditable(boolean editable)
Sets whether newly created polygon should be editable, which allows user to move/add/delete polygon vertices.
|
void |
setFillColor(java.lang.String fillColor)
Sets polygon fill color.
|
void |
setFillOpacity(java.lang.Double fillOpacity)
Sets fill opacity.
|
void |
setGeodesic(boolean geodesic)
Sets whether polygon edges should be geodesic, which means they they curve will change depending of the polygon
closeness to north/south pole.
|
void |
setStrokeColor(java.lang.String strokeColor)
Sets stroke color.
|
void |
setStrokeOpacity(java.lang.Double strokeOpacity)
Sets stroke opacity.
|
void |
setStrokeWeight(java.lang.Integer strokeWeight)
Sets stroke weight in pixels.
|
void |
setVisible(boolean visible)
Sets visibility of newly drawn polygons
|
void |
setZIndex(java.lang.Integer zIndex)
Sets polygon z-index
|
public PolygonOptions()
public PolygonOptions(boolean clickable, boolean editable)
public PolygonOptions(boolean clickable, boolean editable, java.lang.String fillColor, java.lang.Double fillOpacity)
public boolean isEditable()
public void setEditable(boolean editable)
editable
- true if polygon should be editablepublic boolean isClickable()
public void setClickable(boolean clickable)
clickable
- true if polygon should handle click eventspublic java.lang.String getFillColor()
public void setFillColor(java.lang.String fillColor)
fillColor
- fill color in any CSS3 format except extended name colors (aquamarine, chocolate etc)public java.lang.Double getFillOpacity()
public void setFillOpacity(java.lang.Double fillOpacity)
fillOpacity
- fill opacitypublic void setGeodesic(boolean geodesic)
geodesic
- true if edges should be geodesicpublic boolean isGeodesic()
public java.lang.String getStrokeColor()
public void setStrokeColor(java.lang.String strokeColor)
strokeColor
- stroke color in any CSS3 format except extended name colors (aquamarine, chocolate etc)public java.lang.Double getStrokeOpacity()
public void setStrokeOpacity(java.lang.Double strokeOpacity)
strokeOpacity
- public java.lang.Integer getStrokeWeight()
public void setStrokeWeight(java.lang.Integer strokeWeight)
strokeWeight
- stroke weight in pixelspublic boolean isVisible()
public void setVisible(boolean visible)
visible
- public java.lang.Integer getZIndex()
public void setZIndex(java.lang.Integer zIndex)
zIndex
- z-index