com.lowagie.rups.view.renderer
public class PagePanel extends JPanel implements ImageObserver, MouseListener, MouseMotionListener
| Field Summary | |
|---|---|
| Rectangle2D | clip the current clip, in device space |
| protected Image | currentImage The image of the rendered PDF page being displayed |
| protected PDFPage | currentPage The current PDFPage that was rendered into currentImage |
| AffineTransform | deviceToPageSpaceTransformation the current transform from device space to page space |
| protected int | offx The horizontal offset of the image from the left edge of the panel |
| protected int | offy The vertical offset of the image from the top of the panel |
| Rectangle2D | prevClip the clipping region used for the image |
| Dimension | prevSize the size of the image |
| static long | serialVersionUID A Serial Version UID. |
| protected Rectangle | zoomRect the zooming marquee |
| Constructor Summary | |
|---|---|
| PagePanel()
Creates a new PagePanel | |
| Method Summary | |
|---|---|
| int | getCurrentPageNumber()
Gets the current page number. |
| boolean | imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
Handles notification of the fact that some part of the image
changed. |
| void | mouseClicked(MouseEvent arg0) |
| void | mouseDragged(MouseEvent arg0) |
| void | mouseEntered(MouseEvent arg0) |
| void | mouseExited(MouseEvent arg0) |
| void | mouseMoved(MouseEvent arg0) |
| void | mousePressed(MouseEvent arg0) |
| void | mouseReleased(MouseEvent arg0) |
| void | paint(Graphics g)
Draw the image. |
| void | showPage(PDFPage page)
Stop the generation of any previous page, and draw the new one. |
Returns: the number of the currently shown page.
Returns: true if more updates are desired.
Parameters: page the PDFPage to draw.