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 TypeMethodDescriptionvoid
Closes popup of the geometry.void
Closes tooltip of the geometry.org.locationtech.jts.geom.Geometry
Returns a JTS geometry.boolean
Returnstrue
if the geometry is modifiable on a canvas, otherwisefalse
.void
Opens popup of the geometry if popup text is specified.void
Opens 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()Returnstrue
if 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.
-