Package org.faceless.pdf2.viewer2
Class PagePanelEvent
- java.lang.Object
-
- org.faceless.pdf2.viewer2.PagePanelEvent
-
public class PagePanelEvent extends Object
Represents an event on aPagePanel
indicating that document has changed somehow. To capture these events, implement thePagePanelListener
interface and register via thePagePanel.addPagePanelListener()
orDocumentViewport.addPagePanelListener()
methods. Be sure to check thegetType()
method to see what sort of event it is - current values include:redrawing Raised just before the page starts redrawing redrawn Raised when the page has completed redrawing hidden Raised when the page is no longer displayed by the PagePanel visible Raised when the page is newly displayed by the PagePanel 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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PagePanelEvent
createPageHidden(PagePanel panel, PDFPage page)
Create a "hidden" PagePanelEventstatic PagePanelEvent
createPageRedrawing(PagePanel panel, PDFPage page)
Create a "redrawing" PagePanelEventstatic PagePanelEvent
createPageRedrawn(PagePanel panel, PDFPage page)
Create a "redrawn" PagePanelEventstatic PagePanelEvent
createPageVisible(PagePanel panel, PDFPage page)
Create a "visible" PagePanelEventPDFPage
getPage()
Get the Page this event refers toPagePanel
getPagePanel()
Get the PagePanel this event refers toString
getType()
Get the type of eventString
toString()
-
-
-
Method Detail
-
createPageRedrawing
public static PagePanelEvent createPageRedrawing(PagePanel panel, PDFPage page)
Create a "redrawing" PagePanelEvent
-
createPageRedrawn
public static PagePanelEvent createPageRedrawn(PagePanel panel, PDFPage page)
Create a "redrawn" PagePanelEvent
-
createPageVisible
public static PagePanelEvent createPageVisible(PagePanel panel, PDFPage page)
Create a "visible" PagePanelEvent
-
createPageHidden
public static PagePanelEvent createPageHidden(PagePanel panel, PDFPage page)
Create a "hidden" PagePanelEvent
-
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
-
-