public class TooltipOptions
extends java.lang.Object
Constructor and Description |
---|
TooltipOptions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDirection() |
java.lang.Boolean |
getInteractive() |
java.lang.Double |
getOpacity() |
java.lang.Boolean |
getPermanent() |
java.lang.Boolean |
getSticky() |
TooltipOptions |
setDirection(java.lang.String direction)
Direction where to open the tooltip.
|
TooltipOptions |
setInteractive(java.lang.Boolean interactive)
If
true , the tooltip will accept mouse clicks. |
TooltipOptions |
setOpacity(java.lang.Double opacity)
Sets tooltip container opacity.
|
TooltipOptions |
setPermanent(java.lang.Boolean permanent)
Whether to open the tooltip permanently or only on mouseover.
|
TooltipOptions |
setSticky(java.lang.Boolean sticky)
If
true , the tooltip will follow the mouse instead of being fixed at the feature center. |
public java.lang.String getDirection()
public TooltipOptions setDirection(java.lang.String direction)
auto will dynamically switch between right and left according to the tooltip position on the map.
Default value is auto.
public java.lang.Boolean getPermanent()
public TooltipOptions setPermanent(java.lang.Boolean permanent)
Default value is false
.
public java.lang.Boolean getSticky()
public TooltipOptions setSticky(java.lang.Boolean sticky)
true
, the tooltip will follow the mouse instead of being fixed at the feature center.
Default value is false
.
public java.lang.Boolean getInteractive()
public TooltipOptions setInteractive(java.lang.Boolean interactive)
true
, the tooltip will accept mouse clicks.
This mouse click will be propagated to the corresponding geometry.
Makes sense only when permanent
option is set to true
.
Default value is false
.
public java.lang.Double getOpacity()
public TooltipOptions setOpacity(java.lang.Double opacity)
Default value is 0.9.