org.jpedal.examples.simpleviewer.gui.swing
Class SwingMouseSelector
java.lang.Object
org.jpedal.examples.simpleviewer.gui.swing.SwingMouseSelector
public class SwingMouseSelector
- extends java.lang.Object
|
Method Summary |
java.awt.Point |
getCoordsOnPage(int x,
int y,
int page)
Find and updates coords for the current page |
void |
mouseClicked(java.awt.event.MouseEvent event)
Mouse Button Listener |
void |
mouseDragged(java.awt.event.MouseEvent event)
|
void |
mouseEntered(java.awt.event.MouseEvent arg0)
Mouse Motion Listener |
void |
mouseExited(java.awt.event.MouseEvent arg0)
|
void |
mouseMoved(java.awt.event.MouseEvent event)
|
void |
mousePressed(java.awt.event.MouseEvent event)
|
void |
mouseReleased(java.awt.event.MouseEvent event)
|
void |
repaintArea(java.awt.Rectangle screenBox,
int maxY)
requests repaint of an area |
void |
updateRectangle()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
activateMultipageHighlight
public static boolean activateMultipageHighlight
id
public int id
lastId
public int lastId
SwingMouseSelector
public SwingMouseSelector(PdfDecoder decode_pdf,
SwingGUI currentGUI,
Values commonValues,
Commands currentCommands)
updateRectangle
public void updateRectangle()
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent event)
- Mouse Button Listener
mousePressed
public void mousePressed(java.awt.event.MouseEvent event)
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent event)
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent arg0)
- Mouse Motion Listener
mouseExited
public void mouseExited(java.awt.event.MouseEvent arg0)
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent event)
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent event)
getCoordsOnPage
public java.awt.Point getCoordsOnPage(int x,
int y,
int page)
- Find and updates coords for the current page
- Parameters:
x - :: The x coordinate of the cursors location in display area coordinatesy - :: The y coordinate of the cursors location in display area coordinatespage - :: The page we are currently on
- Returns:
- Point object of the cursor location in page coordinates
repaintArea
public void repaintArea(java.awt.Rectangle screenBox,
int maxY)
- requests repaint of an area
JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support