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.LogLOGprivate PDResourcesresourcesprivate javax.swing.text.JTextComponenttextComponent
-
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.StringfindColorSpace(int offset, java.lang.String colorSpaceType)private java.lang.StringgetRowText(int offset)java.lang.StringgetToolTip(int offset, javax.swing.text.JTextComponent textComponent)Returns the tooltip text for the operator.private java.lang.StringgetWord(int offset)(package private) static java.util.List<java.lang.String>getWords(java.lang.String str)private booleanisColorSpace(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.- Parameters:
offset- The position of the mouse in the text component.textComponent- JTextComponent instance.- Returns:
- Tooltip text or null if there isn't any tooltip.
-
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)
-
-