Class Tooltip

    • Constructor Summary

      Constructors 
      Constructor Description
      Tooltip​(sag.SAGPanel panel)
      Constructor which creates the layer and anchors it to the top left
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear all on-screen tooltips
      void send​(java.lang.String msg, float x, float y)
      Create a new tooltip on screen.
      void send​(java.lang.String msg, float x, float y, sag.elements.GText.TextAnchor alignment)
      Create a new tooltip on screen.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Tooltip

        public Tooltip​(sag.SAGPanel panel)
        Constructor which creates the layer and anchors it to the top left
        Parameters:
        panel - The panel to attach the tooltips to
    • Method Detail

      • clear

        public void clear()
        Clear all on-screen tooltips
      • send

        public void send​(java.lang.String msg,
                         float x,
                         float y)
        Create a new tooltip on screen.

        The text alignment get automatically set based on the side of the screen

        Parameters:
        msg - Message to be displayed. Can contain "\n" for line breaks
        x - X coordinate
        y - Y coordinate
      • send

        public void send​(java.lang.String msg,
                         float x,
                         float y,
                         sag.elements.GText.TextAnchor alignment)
        Create a new tooltip on screen.

        This overload allows specifying the text alignment

        Parameters:
        msg - Message to be displayed. Can contain "\n" for line breaks
        x - X coordinate
        y - Y coordinate
        alignment - To which side to anchor the text