public class ToolTipController extends AbstractFeature implements SelectListener
Modifier and Type | Field and Description |
---|---|
protected ToolTipAnnotation |
annotation |
protected java.lang.Object |
lastHoverObject |
protected java.lang.Object |
lastRolloverObject |
protected AnnotationLayer |
layer |
controller, featureID
Constructor and Description |
---|
ToolTipController(Registry registry) |
Modifier and Type | Method and Description |
---|---|
protected void |
addLayer(Layer layer) |
protected java.lang.String |
getHoverText(SelectEvent event) |
protected java.lang.String |
getRolloverText(SelectEvent event) |
protected void |
handleHover(SelectEvent event) |
protected void |
handleRollover(SelectEvent event) |
protected void |
hideToolTip() |
void |
initialize(Controller controller) |
protected void |
removeLayer(Layer layer) |
void |
selected(SelectEvent event) |
protected void |
showToolTip(SelectEvent event,
java.lang.String text) |
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, isOn, isTwoState, propertyChange, register, setMenuAccellerator, turnOn
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected ToolTipAnnotation annotation
protected java.lang.Object lastHoverObject
protected java.lang.Object lastRolloverObject
protected AnnotationLayer layer
public ToolTipController(Registry registry)
protected void addLayer(Layer layer)
protected java.lang.String getHoverText(SelectEvent event)
protected java.lang.String getRolloverText(SelectEvent event)
protected void handleHover(SelectEvent event)
protected void handleRollover(SelectEvent event)
protected void hideToolTip()
public void initialize(Controller controller)
initialize
in interface Initializable
initialize
in class AbstractFeature
protected void removeLayer(Layer layer)
public void selected(SelectEvent event)
selected
in interface SelectListener
protected void showToolTip(SelectEvent event, java.lang.String text)