Package eu.webtoolkit.jwt
Class WLeafletMap.Polyline
java.lang.Object
eu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
eu.webtoolkit.jwt.WLeafletMap.AbstractDrawnItem
eu.webtoolkit.jwt.WLeafletMap.Polyline
- Enclosing class:
WLeafletMap
A polyline that will be drawn on the map.
A polyline is a series of connected line segments going through a series of points.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData -
Constructor Summary
ConstructorsConstructorDescriptionPolyline(List<WLeafletMap.Coordinate> points) Create a new polyline going trough the given points.Polyline(List<WLeafletMap.Coordinate> points, WBrush brush) Create a new polyline going trough the given points.Polyline(List<WLeafletMap.Coordinate> points, WPen pen) Create a new polyline going trough the given points.Polyline(List<WLeafletMap.Coordinate> points, WPen pen, WBrush brush) Create a new polyline going trough the given points. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateItemJS(StringBuilder ss, StringBuilder postJS, long id) Writes the JS code to create this item to the stream.Return the points the polyline goes trough.voidMove the polyline.voidsetPoints(List<WLeafletMap.Coordinate> points) Set the points the polyline go trough.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, needsUpdate, setMap, unrender, updateMethods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, resendFormData, setFormData, setObjectName, tr
-
Constructor Details
-
Polyline
Create a new polyline going trough the given points.Creates a new polyline going through the given
points, drawn with the givenpenand filled with the givenbrush. -
Polyline
Create a new polyline going trough the given points. -
Polyline
Create a new polyline going trough the given points. -
Polyline
Create a new polyline going trough the given points.Creates a new polyline going through the given
pointsand filled with the givenbrush.
-
-
Method Details
-
setPoints
Set the points the polyline go trough.This sets the points the polyline goes trough to the given list of
points. -
getPoints
Return the points the polyline goes trough.- See Also:
-
move
Move the polyline.This moves the polyline so that its first point is at the given position. The other points are moved by the same offset.
- Overrides:
movein classWLeafletMap.AbstractMapItem
-
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
-