Package io.jmix.mapsui.component
Class TooltipOptions
java.lang.Object
io.jmix.mapsui.component.TooltipOptions
Options for a tooltip.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetDirection(String direction) Direction where to open the tooltip.setInteractive(Boolean interactive) Iftrue, the tooltip will accept mouse clicks.setOpacity(Double opacity) Sets tooltip container opacity.setPermanent(Boolean permanent) Whether to open the tooltip permanently or only on mouseover.Iftrue, the tooltip will follow the mouse instead of being fixed at the feature center.
-
Constructor Details
-
TooltipOptions
public TooltipOptions()
-
-
Method Details
-
getDirection
-
setDirection
Direction where to open the tooltip. Possible values are: right, left, top, bottom, center, auto.auto will dynamically switch between right and left according to the tooltip position on the map.
Default value is auto.
-
getPermanent
-
setPermanent
Whether to open the tooltip permanently or only on mouseover.Default value is
false. -
getSticky
-
setSticky
Iftrue, the tooltip will follow the mouse instead of being fixed at the feature center.Default value is
false. -
getInteractive
-
setInteractive
Iftrue, the tooltip will accept mouse clicks. This mouse click will be propagated to the corresponding geometry. Makes sense only whenpermanentoption is set totrue.Default value is
false. -
getOpacity
-
setOpacity
Sets tooltip container opacity.Default value is 0.9.
-