org.jpedal.examples.simpleviewer.gui.swing
Class SwingMouseHandler

java.lang.Object
  extended by org.jpedal.examples.simpleviewer.gui.swing.SwingMouseHandler
All Implemented Interfaces:
GUIMouseHandler

public class SwingMouseHandler
extends java.lang.Object
implements GUIMouseHandler

handles all mouse activity in GUI using Swing classes


Constructor Summary
SwingMouseHandler(PdfDecoder decode_pdf, SwingGUI currentGUI, Values commonValues, Commands currentCommands)
           
 
Method Summary
 void checkLinks(boolean mouseClicked, org.jpedal.io.PdfObjectReader pdfObjectReader)
          checks the link areas on the page and allow user to save file
 void setupExtractor()
           
 void setupMouse()
           
 void updateCords(java.awt.event.MouseEvent event)
          update current page co-ordinates on screen
 void updateRectangle()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingMouseHandler

public SwingMouseHandler(PdfDecoder decode_pdf,
                         SwingGUI currentGUI,
                         Values commonValues,
                         Commands currentCommands)
Method Detail

checkLinks

public void checkLinks(boolean mouseClicked,
                       org.jpedal.io.PdfObjectReader pdfObjectReader)
checks the link areas on the page and allow user to save file


setupExtractor

public void setupExtractor()
Specified by:
setupExtractor in interface GUIMouseHandler

updateCords

public void updateCords(java.awt.event.MouseEvent event)
update current page co-ordinates on screen


updateRectangle

public void updateRectangle()
Specified by:
updateRectangle in interface GUIMouseHandler

setupMouse

public void setupMouse()
Specified by:
setupMouse in interface GUIMouseHandler