eTextReader
Class ContentPane.HyperlinkHandler
java.lang.Object
eTextReader.ContentPane.HyperlinkHandler
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.HyperlinkListener
- Enclosing class:
- ContentPane
class ContentPane.HyperlinkHandler
- extends java.lang.Object
- implements javax.swing.event.HyperlinkListener
This class handles hyperlink events, including clicking on hyperlinks
on the page, as well as mousing into and out of annotation icons
- Author:
- mcfall
Method Summary |
private void |
handleEnterAnnotation(javax.swing.event.HyperlinkEvent ev,
int id,
Notation notation)
This method handles what to do when the mouse enters a link that represents an annotation
It records information about the annotation in the currentNotationInfo element, and then
potentially highlights the annotation selection and then fires an event to allow a popup to be displayed |
private void |
handleNotationExited(javax.swing.event.HyperlinkEvent ev,
int id,
Notation notation)
|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent ev)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentPane.HyperlinkHandler
ContentPane.HyperlinkHandler()
hyperlinkUpdate
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent ev)
- Specified by:
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
handleNotationExited
private void handleNotationExited(javax.swing.event.HyperlinkEvent ev,
int id,
Notation notation)
handleEnterAnnotation
private void handleEnterAnnotation(javax.swing.event.HyperlinkEvent ev,
int id,
Notation notation)
- This method handles what to do when the mouse enters a link that represents an annotation
It records information about the annotation in the currentNotationInfo element, and then
potentially highlights the annotation selection and then fires an event to allow a popup to be displayed
- Parameters:
ev
- the HyperlinkEvent that was generated when the mouse entered the annotationid
- the integer ID of the annotation, provided as a conveniencenotation
- the notation associated with the given ID