Class ToolTipController
- java.lang.Object
-
- org.apache.pdfbox.debugger.streampane.tooltip.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
-
Constructor Summary
Constructors Constructor Description ToolTipController(PDResources resources)
Constructor.
-
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)
-
-
-
Field Detail
-
LOG
private static final org.apache.commons.logging.Log LOG
-
resources
private final PDResources resources
-
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)
-
-