| javax.swing.JPanel com.sun.pdfview.PagePanel
Constructor Summary | |
public | PagePanel() Create a new PagePanel, with a default size of 800 by 600 pixels. |
currentImage | Image currentImage(Code) | | The image of the rendered PDF page being displayed
|
currentPage | PDFPage currentPage(Code) | | The current PDFPage that was rendered into currentImage
|
downx | int downx(Code) | | x location of the mouse-down event
|
downy | int downy(Code) | | y location of the mouse-down event
|
flag | Flag flag(Code) | | a flag indicating whether the current page is done or not.
|
offx | int offx(Code) | | The horizontal offset of the image from the left edge of the panel
|
offy | int offy(Code) | | The vertical offset of the image from the top of the panel
|
useZoom | boolean useZoom(Code) | | whether the zoom tool is enabled
|
PagePanel | public PagePanel()(Code) | | Create a new PagePanel, with a default size of 800 by 600 pixels.
|
flush | public synchronized void flush()(Code) | | |
getCurClip | public Rectangle2D getCurClip()(Code) | | Gets the clipping rectangle in page space currently being displayed
|
getCurSize | public Dimension getCurSize()(Code) | | Gets the size of the image currently being displayed
|
getPage | public PDFPage getPage()(Code) | | Gets the page currently being displayed
|
imageUpdate | public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)(Code) | | Handles notification of the fact that some part of the image
changed. Repaints that portion.
true if more updates are desired. |
mouseDragged | public void mouseDragged(MouseEvent evt)(Code) | | Handles a mouseDragged event. Constrains the zoom rect to the
aspect ratio of the panel unless the shift key is down.
|
mousePressed | public void mousePressed(MouseEvent evt)(Code) | | Handles a mousePressed event
|
mouseReleased | public void mouseReleased(MouseEvent evt)(Code) | | Handles a mouseReleased event. If zooming is turned on and there's
a valid zoom rectangle, set the image clip to the zoom rect.
|
setClip | public void setClip(Rectangle2D clip)(Code) | | Set the desired clipping region (in screen coordinates), and redraw
the image.
|
showPage | public synchronized void showPage(PDFPage page)(Code) | | Stop the generation of any previous page, and draw the new one.
Parameters: page - the PDFPage to draw. |
useZoomTool | public void useZoomTool(boolean use)(Code) | | Turns the zoom tool on or off. If on, mouse drags will draw the
zooming marquee. If off, mouse drags are ignored.
|
waitForCurrentPage | public void waitForCurrentPage()(Code) | | Waits until the page is either complete or had an error.
|
|
|