Class LytTooltipSpan

All Implemented Interfaces:
LytFlowParent, InteractiveElement, LytErrorSink, guideme.internal.siteexport.ExportableResourceProvider, Styleable
Direct Known Subclasses:
LytFlowLink

public class LytTooltipSpan extends LytFlowSpan implements InteractiveElement, guideme.internal.siteexport.ExportableResourceProvider
An inline span that allows a tooltip to be shown on hover.
  • Constructor Details

    • LytTooltipSpan

      public LytTooltipSpan()
  • Method Details

    • getTooltip

      public Optional<GuideTooltip> getTooltip(float x, float y)
      Specified by:
      getTooltip in interface InteractiveElement
      Parameters:
      x - X position of the mouse in document coordinates.
      y - Y position of the mouse in document coordinates.
    • setTooltip

      public void setTooltip(@Nullable @Nullable GuideTooltip tooltip)
    • exportResources

      public void exportResources(guideme.internal.siteexport.ResourceExporter exporter)
      Specified by:
      exportResources in interface guideme.internal.siteexport.ExportableResourceProvider