public class URITipMgr extends MouseAdapter implements ActionListener, URIEventListener, MouseMotionListener
for license details.| Modifier and Type | Field and Description |
|---|---|
private org.crosswire.common.xml.Converter |
converter |
private URIEvent |
event |
private int |
lastx |
private int |
lasty |
private Component |
owner |
private Popup |
popup |
private JScrollPane |
scrView |
private boolean |
sticky |
private Timer |
timer |
private TitledBorder |
title |
private JTextPane |
txtView |
| Constructor and Description |
|---|
URITipMgr(Component own,
Dimension dim) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
activateURI(URIEvent ev)
This method is called to indicate that an URI can be processed.
|
void |
enterURI(URIEvent ev)
This method is called to indicate that the mouse has entered the URI.
|
(package private) void |
hideTip(boolean stick) |
(package private) boolean |
interested(URIEvent ev) |
void |
leaveURI(URIEvent ev)
This method is called to indicate that the mouse has left the URI.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
setDelay(int delay) |
(package private) void |
showTip() |
void |
updateText() |
mouseEntered, mousePressed, mouseReleased, mouseWheelMovedprivate Component owner
private JTextPane txtView
private JScrollPane scrView
private TitledBorder title
private Popup popup
private boolean sticky
private int lastx
private int lasty
private URIEvent event
private Timer timer
private org.crosswire.common.xml.Converter converter
public void setDelay(int delay)
public void updateText()
void showTip()
void hideTip(boolean stick)
boolean interested(URIEvent ev)
ev - if we are interested in this eventpublic void activateURI(URIEvent ev)
URIEventListeneractivateURI in interface URIEventListenerev - Describes the URIpublic void enterURI(URIEvent ev)
URIEventListenerenterURI in interface URIEventListenerev - Describes the URIpublic void leaveURI(URIEvent ev)
URIEventListenerleaveURI in interface URIEventListenerev - Describes the URIpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class MouseAdapterpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenermouseMoved in class MouseAdapterpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenermouseClicked in class MouseAdapterpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class MouseAdapter