public class PagePanelInteractionEvent extends Object
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.
Modifier and Type | Method and Description |
---|---|
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() |
public PagePanel getPagePanel()
public String getType()
public PDFPage getPage()
public Point2D getPoint()
public MouseEvent getMouseEvent()
public PagePanelInteractionEvent getEventOnNewPanel()
Copyright © 2001-2017 Big Faceless Organization