public class LCircle extends Object implements LComponent
| Constructor and Description |
|---|
LCircle(double lat,
double lon,
double radius)
Creates a new circle
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDashArray() |
String |
getDashOffset() |
String |
getFillColor() |
double |
getFillOpacity() |
String |
getFillRule() |
LPoint |
getGeometry() |
String |
getJsFunctionForAddingToMap()
Get the JavaScript Function for adding the component to a map
|
String |
getLineJoin() |
String |
getPopup() |
LPolygonOptions |
getProperties() |
double |
getRadius() |
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.
Set it to false to disable filling. |
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 |
setGeometry(LPoint geometry) |
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 |
setProperties(LPolygonOptions properties) |
void |
setRadius(double radius) |
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 LCircle(double lat,
double lon,
double radius)
lat - Latitudelon - Longituderadius - radiuspublic LPoint getGeometry()
public void setGeometry(LPoint geometry)
public LPolygonOptions getProperties()
public void setProperties(LPolygonOptions properties)
public boolean isStroke()
public void setStroke(boolean stroke)
stroke - strokepublic String getStrokeColor()
public void setStrokeColor(String strokeColor)
strokeColor - color of the strokepublic double getStrokeOpacity()
public void setStrokeOpacity(double strokeOpacity)
strokeOpacity - opacity of the strokepublic int getStrokeWeight()
public void setStrokeWeight(int strokeWeight)
strokeWeight - strokeWeightpublic String getLineJoin()
public void setLineJoin(String lineJoin)
lineJoin - string that defines shape to be used at the corners of the strokepublic String getDashArray()
public void setDashArray(String dashArray)
dashArray - string that defines the stroke dash patternpublic String getDashOffset()
public void setDashOffset(String dashOffset)
dashOffset - string that defines the distance into the dash pattern to start the dashpublic boolean isFill()
public void setFill(boolean fill)
fill - false to disable fillingpublic String getFillColor()
public void setFillColor(String fillColor)
fillColor - fillColorpublic double getFillOpacity()
public void setFillOpacity(double fillOpacity)
fillOpacity - fillOpacitypublic String getPopup()
public void setPopup(String popup)
popup - Message of the popuppublic String getFillRule()
public void setFillRule(String fillRule)
fillRule - string that defines how the inside of a shape is determinedpublic boolean isNoClip()
public void setNoClip(boolean noClip)
noClip - true = disable polyline clippingpublic double getSmoothFactor()
public void setSmoothFactor(double smoothFactor)
smoothFactor - how much to simplify the polyline on each zoom levelpublic void setRadius(double radius)
public double getRadius()
public elemental.json.JsonObject toJson()
LComponenttoJson in interface LComponentpublic String getJsFunctionForAddingToMap()
LComponentgetJsFunctionForAddingToMap in interface LComponentCopyright © 2019–2021 XDEV Software. All rights reserved.