Class ToolTipController


  • public class ToolTipController
    extends java.lang.Object
    Author:
    Khyrul Bashar A class that provides the tooltip for an operator.
    • Constructor Summary

      Constructors 
      Constructor Description
      ToolTipController​(org.apache.pdfbox.pdmodel.PDResources resources)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getToolTip​(int offset, javax.swing.text.JTextComponent textComponent)
      Returns the tooltip text for the operator.
      • Methods inherited from class java.lang.Object

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

      • ToolTipController

        public ToolTipController​(org.apache.pdfbox.pdmodel.PDResources resources)
        Constructor.
        Parameters:
        resources - PDResources instance.
    • Method Detail

      • getToolTip

        public java.lang.String getToolTip​(int offset,
                                           javax.swing.text.JTextComponent textComponent)
        Returns the tooltip text for the operator. null if there isn't any tooltip.
        Parameters:
        offset - The position of the mouse in the text component.
        textComponent - JTextComponent instance.
        Returns:
        Tooltip text, String instance.