Class ToolTipController

java.lang.Object
org.apache.pdfbox.debugger.streampane.tooltip.ToolTipController

public class ToolTipController extends Object
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
    • resources

      private final PDResources resources
    • textComponent

      private JTextComponent textComponent
  • Constructor Details

    • ToolTipController

      public ToolTipController(PDResources resources)
      Constructor.
      Parameters:
      resources - PDResources instance.
  • Method Details

    • getWords

      static List<String> getWords(String str)
    • getToolTip

      public String getToolTip(int offset, 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.
    • findColorSpace

      private String findColorSpace(int offset, String colorSpaceType)
    • isColorSpace

      private boolean isColorSpace(String colorSpaceType, String rowText)
    • getWord

      private String getWord(int offset)
    • getRowText

      private String getRowText(int offset)