public class ToolTipController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private PDResources |
resources |
private javax.swing.text.JTextComponent |
textComponent |
Constructor and Description |
---|
ToolTipController(PDResources resources)
Constructor.
|
Modifier and Type | Method and 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) |
private static final org.apache.commons.logging.Log LOG
private final PDResources resources
private javax.swing.text.JTextComponent textComponent
public ToolTipController(PDResources resources)
resources
- PDResources instance.static java.util.List<java.lang.String> getWords(java.lang.String str)
public java.lang.String getToolTip(int offset, javax.swing.text.JTextComponent textComponent)
offset
- The position of the mouse in the text component.textComponent
- JTextComponent instance.private java.lang.String findColorSpace(int offset, java.lang.String colorSpaceType)
private boolean isColorSpace(java.lang.String colorSpaceType, java.lang.String rowText)
private java.lang.String getWord(int offset)
private java.lang.String getRowText(int offset)