Package io.jmix.mapsui.component
Interface CanvasLayer.Geometry
- All Known Subinterfaces:
CanvasLayer.Point,CanvasLayer.Polygon,CanvasLayer.Polyline
- Enclosing interface:
- CanvasLayer
public static interface CanvasLayer.Geometry
A common interface for a wrapper encapsulating a vector geometry on the canvas
and providing an API to control it.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCloses popup of the geometry.voidCloses tooltip of the geometry.org.locationtech.jts.geom.GeometryReturns a JTS geometry.booleanReturnstrueif the geometry is modifiable on a canvas, otherwisefalse.voidOpens popup of the geometry if popup text is specified.voidOpens tooltip of the geometry if tooltip text is specified.setEditable(boolean editable) Sets whether the geometry is to be modifiable on a canvas.
-
Method Details
-
getGeometry
org.locationtech.jts.geom.Geometry getGeometry()Returns a JTS geometry. -
setEditable
Sets whether the geometry is to be modifiable on a canvas. -
isEditable
boolean isEditable()Returnstrueif the geometry is modifiable on a canvas, otherwisefalse. -
openPopup
void openPopup()Opens popup of the geometry if popup text is specified. -
openTooltip
void openTooltip()Opens tooltip of the geometry if tooltip text is specified. -
closePopup
void closePopup()Closes popup of the geometry. -
closeTooltip
void closeTooltip()Closes tooltip of the geometry.
-