Top Fields Constructors Methods
org.apache.pdfbox.debugger.streampane.tooltip

public Class ToolTipController

Additional top-level class in compilation unit: ToolTip.

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, javax.swing.text.BadLocationException, .JTextComponent, .Utilities, org.apache.commons.logging.Log, .LogFactory, org.apache.pdfbox.contentstream.operator.OperatorName, org.apache.pdfbox.pdmodel.PDResources

Author
Khyrul Bashar A class that provides the tooltip for an operator.

Field Summary

Modifier and TypeField and Description
private static final Log
private final PDResources
private JTextComponent

Constructor Summary

AccessConstructor and Description
public
ToolTipController(PDResources
PDResources instance.
resources
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
private String
findColorSpace(int offset, String colorSpaceType)

private String
getRowText(int offset)

public String

Returns:

Tooltip text or null if there isn't any tooltip.
getToolTip
(int
The position of the mouse in the text component.
offset
,
JTextComponent
JTextComponent instance.
textComponent
)

Returns the tooltip text for the operator.

private String
getWord(int offset)

pack-priv static List<String>
private boolean
isColorSpace(String colorSpaceType, String rowText)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Log LOG
resourcesback to summary
private final PDResources resources
textComponentback to summary
private JTextComponent textComponent

Constructor Detail

ToolTipControllerback to summary
public ToolTipController(PDResources resources)

Constructor.

Parameters
resources:PDResources

PDResources instance.

Method Detail

findColorSpaceback to summary
private String findColorSpace(int offset, String colorSpaceType)
getRowTextback to summary
private String getRowText(int offset)
getToolTipback to summary
public String getToolTip(int offset, JTextComponent textComponent)

Returns the tooltip text for the operator.

Parameters
offset:int

The position of the mouse in the text component.

textComponent:JTextComponent

JTextComponent instance.

Returns:String

Tooltip text or null if there isn't any tooltip.

getWordback to summary
private String getWord(int offset)
getWordsback to summary
pack-priv static List<String> getWords(String str)
isColorSpaceback to summary
private boolean isColorSpace(String colorSpaceType, String rowText)