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, mouseWheelMoved
private 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)
URIEventListener
activateURI
in interface URIEventListener
ev
- Describes the URIpublic void enterURI(URIEvent ev)
URIEventListener
enterURI
in interface URIEventListener
ev
- Describes the URIpublic void leaveURI(URIEvent ev)
URIEventListener
leaveURI
in interface URIEventListener
ev
- Describes the URIpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class MouseAdapter
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class MouseAdapter
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class MouseAdapter
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class MouseAdapter