Interface TooltipLayer<T extends BaseLayer<?>>

Type Parameters:
T - The layer class type
All Known Implementing Classes:
Area, Circle, CirclePoint, DivPoint, Line, Point, Rectangle

public interface TooltipLayer<T extends BaseLayer<?>>
Implementing this interface makes the TooltipLayer class accessible to the tile layers. The class enables you to specify the settings of a layer tooltip.
Since:
4.0
  • Field Details

  • Method Details

    • isTooltipOpened

      default boolean isTooltipOpened()
      Gets the tooltip's display status: programmatically displayed or not.
      Returns:
      true if the openTooltip() was used previously false, if the closeTooltip() was used previously The default value is false.
    • openTooltip

      default T openTooltip()
      Programmatically opens the tooltip.
      Returns:
      Layer class instance
    • closeTooltip

      default T closeTooltip()
      Programmatically closes the tooltip.
      Returns:
      Layer class instance
    • getTooltipContent

      default String getTooltipContent()
      Gets the specified tooltip content.
      Returns:
      Tooltip content By default, the value is null.
    • setTooltipContent

      default T setTooltipContent(String tooltipContent)
      Sets the tooltip content.
      Parameters:
      tooltipContent - Tooltip content
      Returns:
      Layer class instance
    • isTooltipEnabled

      default boolean isTooltipEnabled()
      Gets the tooltip display status.
      Returns:
      true if the tooltip is enabled If not enabled, it is false.
    • setTooltipEnabled

      default T setTooltipEnabled(boolean tooltipEnabled)
      Sets the tooltip display mode (enabled/disabled).
      Parameters:
      tooltipEnabled - Enables or disables the tooltip display
      Returns:
      Layer class instance