public static interface CanvasLayer.Polyline extends CanvasLayer.Geometry
LineString
on the canvas.Modifier and Type | Interface and Description |
---|---|
static class |
CanvasLayer.Polyline.ClickEvent
An event that is fired after click on the polyline.
|
static class |
CanvasLayer.Polyline.ModifiedEvent
An event that is fired after modifying the polyline via UI.
|
static class |
CanvasLayer.Polyline.RightClickEvent
An event that is fired after right click on the polyline.
|
Modifier and Type | Method and Description |
---|---|
io.jmix.core.common.event.Subscription |
addClickListener(java.util.function.Consumer<CanvasLayer.Polyline.ClickEvent> listener)
Registers a new polyline click listener.
|
io.jmix.core.common.event.Subscription |
addModifiedListener(java.util.function.Consumer<CanvasLayer.Polyline.ModifiedEvent> listener)
Registers a new polyline modified listener.
|
io.jmix.core.common.event.Subscription |
addRightClickListener(java.util.function.Consumer<CanvasLayer.Polyline.RightClickEvent> listener)
Registers a new polyline right click listener.
|
org.locationtech.jts.geom.LineString |
getGeometry()
Returns a JTS linestring.
|
CanvasLayer.Polyline |
setEditable(boolean editable)
Sets whether the geometry is to be modifiable on a canvas.
|
CanvasLayer.Polyline |
setPopupContent(java.lang.String popupContent)
Adds a popup window to be opened as user clicks on the polyline.
|
CanvasLayer.Polyline |
setPopupOptions(PopupWindowOptions options)
Specifies options for a popup window added by
setPopupContent(String) . |
CanvasLayer.Polyline |
setStyle(PolylineStyle style)
Applies a style to the polyline.
|
CanvasLayer.Polyline |
setTooltipContent(java.lang.String tooltipContent)
Adds a tooltip to be opened as user hovers on the polyline.
|
CanvasLayer.Polyline |
setTooltipOptions(TooltipOptions options)
Specifies options for a tooltip added by
setTooltipContent(String) . |
closePopup, closeTooltip, isEditable, openPopup, openTooltip
org.locationtech.jts.geom.LineString getGeometry()
getGeometry
in interface CanvasLayer.Geometry
CanvasLayer.Polyline setStyle(PolylineStyle style)
style
- polyline styleCanvasLayer.Polyline setPopupContent(java.lang.String popupContent)
popupContent
- content of the popup windowCanvasLayer.Polyline setPopupOptions(PopupWindowOptions options)
setPopupContent(String)
.options
- popup window optionsCanvasLayer.Polyline setTooltipContent(java.lang.String tooltipContent)
tooltipContent
- content of the tooltip boxCanvasLayer.Polyline setTooltipOptions(TooltipOptions options)
setTooltipContent(String)
.options
- tooltip optionsCanvasLayer.Polyline setEditable(boolean editable)
CanvasLayer.Geometry
setEditable
in interface CanvasLayer.Geometry
io.jmix.core.common.event.Subscription addClickListener(java.util.function.Consumer<CanvasLayer.Polyline.ClickEvent> listener)
listener
- the listener to be addedio.jmix.core.common.event.Subscription addRightClickListener(java.util.function.Consumer<CanvasLayer.Polyline.RightClickEvent> listener)
listener
- the listener to be addedio.jmix.core.common.event.Subscription addModifiedListener(java.util.function.Consumer<CanvasLayer.Polyline.ModifiedEvent> listener)
listener
- the listener to be added