Package io.jmix.mapsui.component
Class TooltipOptions
java.lang.Object
io.jmix.mapsui.component.TooltipOptions
Options for a tooltip.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
TooltipOptionspublic TooltipOptions()
 
- 
- 
Method Details- 
getDirection
- 
setDirectionDirection 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
- 
setPermanentWhether to open the tooltip permanently or only on mouseover.Default value is false.
- 
getSticky
- 
setStickyIftrue, the tooltip will follow the mouse instead of being fixed at the feature center.Default value is false.
- 
getInteractive
- 
setInteractiveIftrue, 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
- 
setOpacitySets tooltip container opacity.Default value is 0.9. 
 
-