public class LPolygon extends Object implements LComponent
| Constructor and Description |
|---|
LPolygon(List<LPoint> points)
Create a new Polygon for marking a area on the map
|
LPolygon(LPoint... points) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDashArray() |
String |
getDashOffset() |
String |
getFillColor() |
double |
getFillOpacity() |
String |
getFillRule() |
String |
getJsFunctionForAddingToMap()
Get the JavaScript Function for adding the component to a map
|
String |
getLineJoin() |
String |
getPopup() |
double |
getSmoothFactor() |
String |
getStrokeColor() |
double |
getStrokeOpacity() |
int |
getStrokeWeight() |
boolean |
isFill() |
boolean |
isNoClip() |
boolean |
isStroke() |
void |
setDashArray(String dashArray)
A string that defines the stroke dash pattern.
For example: "2 1 3 1 2" |
void |
setDashOffset(String dashOffset)
A string that defines the distance into the dash pattern to start the dash.
For example: "2" - The start of the dash array computation is pulled by 3 user units |
void |
setFill(boolean fill)
Whether to fill the path with color.
|
void |
setFillColor(String fillColor)
Fill color.
|
void |
setFillOpacity(double fillOpacity)
Fill opacity.
|
void |
setFillRule(String fillRule)
A string that defines how the inside of a shape is determined.
evenodd nonzero |
void |
setLineJoin(String lineJoin)
A string that defines shape to be used at the corners of the stroke.
miter round bevel miter-clip arcs |
void |
setNoClip(boolean noClip)
Disable polyline clipping.
|
void |
setPopup(String popup)
Set Pop-up message.
|
void |
setSmoothFactor(double smoothFactor)
How much to simplify the polyline on each zoom level.
More means better performance and smoother look, and less means more accurate representation. |
void |
setStroke(boolean stroke)
Draws a border, default is true.
|
void |
setStrokeColor(String strokeColor)
Set a Color to the border.
|
void |
setStrokeOpacity(double strokeOpacity)
Sets the opacity of the border.
|
void |
setStrokeWeight(int strokeWeight)
Sets the width of the border.
|
elemental.json.JsonObject |
toJson()
The json data for e.g.
|
public LPolygon(LPoint... points)
public boolean isStroke()
public void setStroke(boolean stroke)
stroke - public String getStrokeColor()
public void setStrokeColor(String strokeColor)
strokeColor - public double getStrokeOpacity()
public void setStrokeOpacity(double strokeOpacity)
strokeOpacity - public int getStrokeWeight()
public void setStrokeWeight(int strokeWeight)
strokeWeight - public String getLineJoin()
public void setLineJoin(String lineJoin)
lineJoin - public String getDashArray()
public void setDashArray(String dashArray)
dashArray - public String getDashOffset()
public void setDashOffset(String dashOffset)
dashOffset - public boolean isFill()
public void setFill(boolean fill)
fill - public String getFillColor()
public void setFillColor(String fillColor)
fillColor - public double getFillOpacity()
public void setFillOpacity(double fillOpacity)
fillOpacity - public String getPopup()
public void setPopup(String popup)
popup - public String getFillRule()
public void setFillRule(String fillRule)
fillRule - public boolean isNoClip()
public void setNoClip(boolean noClip)
noClip - public double getSmoothFactor()
public void setSmoothFactor(double smoothFactor)
smoothFactor - public elemental.json.JsonObject toJson()
LComponenttoJson in interface LComponentpublic String getJsFunctionForAddingToMap()
LComponentgetJsFunctionForAddingToMap in interface LComponentCopyright © 2019–2021 XDEV Software. All rights reserved.