|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.viewer2.PagePanelInteractionEvent
public class PagePanelInteractionEvent
Represents an interaction (currently only mouse) event on a PagePanel
.
To capture these events, implement the PagePanelInteractionListener
interface
and register via the PagePanel.addPagePanelInteractionListener()
or
DocumentViewport.addPagePanelInteractionListener()
methods.
Be sure to check the getType()
method to see what sort of event it is - current values
include:
mouseEntered | Raised when the mouseEntered event is raised |
---|---|
mouseExited | Raised when the mouseExited event is raised |
mousePressed | Raised when the mousePressed event is raised |
mouseReleased | Raised when the mouseReleased event is raised |
mouseClicked | Raised when the mouseClicked event is raised |
mouseMoved | Raised when the mouseMoved event is raised |
mouseDragged | Raised when the mouseDragged event is raised |
This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
Method Summary | |
---|---|
PagePanelInteractionEvent |
getEventOnNewPanel()
If the MouseEvent that triggered this event was a "mouseDragged" MouseEvent, and the mouse has been dragged from the original PagePanel to a new PagePanel, return a new PagePanelInteractionEvent which reflects the event on the new PagePanel. |
MouseEvent |
getMouseEvent()
Return the MouseEvent that caused this event |
PDFPage |
getPage()
Get the Page this event refers to |
PagePanel |
getPagePanel()
Get the PagePanel this event refers to |
Point2D |
getPoint()
Return the Point in PDF-space where this event occured |
String |
getType()
Get the type of event |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String toString()
toString
in class Object
public PagePanel getPagePanel()
public String getType()
public PDFPage getPage()
public Point2D getPoint()
public MouseEvent getMouseEvent()
public PagePanelInteractionEvent getEventOnNewPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |