Package org.faceless.pdf2.viewer2
Class PagePanelInteractionEvent
- java.lang.Object
-
- org.faceless.pdf2.viewer2.PagePanelInteractionEvent
-
public class PagePanelInteractionEvent extends Object
Represents an interaction (currently only mouse) event on aPagePanel
. To capture these events, implement thePagePanelInteractionListener
interface and register via thePagePanel.addPagePanelInteractionListener()
orDocumentViewport.addPagePanelInteractionListener()
methods. Be sure to check thegetType()
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.
- Since:
- 2.8
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 eventPDFPage
getPage()
Get the Page this event refers toPagePanel
getPagePanel()
Get the PagePanel this event refers toPoint2D
getPoint()
Return the Point in PDF-space where this event occuredString
getType()
Get the type of eventString
toString()
-
-
-
Method Detail
-
getPagePanel
public PagePanel getPagePanel()
Get the PagePanel this event refers to
-
getType
public String getType()
Get the type of event
-
getPage
public PDFPage getPage()
Get the Page this event refers to
-
getPoint
public Point2D getPoint()
Return the Point in PDF-space where this event occured
-
getMouseEvent
public MouseEvent getMouseEvent()
Return the MouseEvent that caused this event- Since:
- 2.8.5
-
getEventOnNewPanel
public 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. If the mouse was dragged onto something other than a PagePanel, return null. If the mouse is still on the original PagePanel, return this event.- Since:
- 2.11.19
-
-