eTextReader
Class ContentPane.HyperlinkHandler

java.lang.Object
  extended by 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

Constructor Summary
ContentPane.HyperlinkHandler()
           
 
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
 

Constructor Detail

ContentPane.HyperlinkHandler

ContentPane.HyperlinkHandler()
Method Detail

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 annotation
id - the integer ID of the annotation, provided as a convenience
notation - the notation associated with the given ID