Package eu.webtoolkit.jwt
Class WLeafletMap.Circle
java.lang.Object
eu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
eu.webtoolkit.jwt.WLeafletMap.AbstractDrawnItem
eu.webtoolkit.jwt.WLeafletMap.Circle
- Enclosing class:
WLeafletMap
A circle that will be drawn on the map.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData -
Constructor Summary
ConstructorsConstructorDescriptionCircle(WLeafletMap.Coordinate center, double radius) Create a new circle at the given position.Circle(WLeafletMap.Coordinate center, double radius, WBrush brush) Create a new circle at the given position.Circle(WLeafletMap.Coordinate center, double radius, WPen pen) Create a new circle at the given position.Circle(WLeafletMap.Coordinate center, double radius, WPen pen, WBrush brush) Create a new circle at the given position. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateItemJS(StringBuilder ss, StringBuilder postJS, long id) Writes the JS code to create this item to the stream.doubleReturn the radius (in meters).voidsetRadius(double radius) Set the radius (in meters).Methods inherited from class eu.webtoolkit.jwt.WLeafletMap.AbstractDrawnItem
addStyleOptions, getBrush, getPen, setBrush, setPenMethods inherited from class eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
clicked, doubleClicked, getMap, getPosition, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, move, needsUpdate, setMap, unrender, updateMethods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, resendFormData, setFormData, setObjectName, tr
-
Constructor Details
-
Circle
Create a new circle at the given position.Creates a new circle at the given
centerwith the givenradius(in meters), drawn with the givenpenand filled with the givenbrush. -
Circle
Create a new circle at the given position. -
Circle
Create a new circle at the given position. -
Circle
Create a new circle at the given position.Creates a new circle at the given
centerwith the givenradius(in meters) and filled with the givenbrush.
-
-
Method Details
-
setRadius
public void setRadius(double radius) Set the radius (in meters). -
getRadius
public double getRadius()Return the radius (in meters).- See Also:
-
createItemJS
Description copied from class:WLeafletMap.AbstractMapItemWrites the JS code to create this item to the stream.This method should write in
ssthe JS code that creates the item. ThepostJSstream can be used to write JS code that should be executed after the item has been created.- Specified by:
createItemJSin classWLeafletMap.AbstractMapItem
-