Class ToolTipController


  • public class ToolTipController
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.apache.commons.logging.Log LOG  
      private PDResources resources  
      private javax.swing.text.JTextComponent textComponent  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String findColorSpace​(int offset, java.lang.String colorSpaceType)  
      private java.lang.String getRowText​(int offset)  
      java.lang.String getToolTip​(int offset, javax.swing.text.JTextComponent textComponent)
      Returns the tooltip text for the operator.
      private java.lang.String getWord​(int offset)  
      (package private) static java.util.List<java.lang.String> getWords​(java.lang.String str)  
      private boolean isColorSpace​(java.lang.String colorSpaceType, java.lang.String rowText)  
      • Methods inherited from class java.lang.Object

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

      • LOG

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

        private javax.swing.text.JTextComponent textComponent
    • Constructor Detail

      • ToolTipController

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

      • getWords

        static java.util.List<java.lang.String> getWords​(java.lang.String str)
      • 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.
      • findColorSpace

        private java.lang.String findColorSpace​(int offset,
                                                java.lang.String colorSpaceType)
      • isColorSpace

        private boolean isColorSpace​(java.lang.String colorSpaceType,
                                     java.lang.String rowText)
      • getWord

        private java.lang.String getWord​(int offset)
      • getRowText

        private java.lang.String getRowText​(int offset)