|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.lowagie.rups.view.renderer.PagePanel
public class PagePanel
The panel that will show a rendered PDF page.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
(package private) 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 |
(package private) 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 |
(package private) Rectangle2D |
prevClip
the clipping region used for the image |
(package private) Dimension |
prevSize
the size of the image |
private static long |
serialVersionUID
A Serial Version UID. |
protected Rectangle |
zoomRect
the zooming marquee |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
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. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected PDFPage currentPage
protected Image currentImage
protected int offx
protected int offy
Dimension prevSize
Rectangle2D clip
Rectangle2D prevClip
protected Rectangle zoomRect
AffineTransform deviceToPageSpaceTransformation
Constructor Detail |
---|
public PagePanel()
Method Detail |
---|
public int getCurrentPageNumber()
public void paint(Graphics g)
paint
in class JComponent
public void showPage(PDFPage page)
page
- the PDFPage to draw.public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface ImageObserver
imageUpdate
in class Component
public void mouseClicked(MouseEvent arg0)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent arg0)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent arg0)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent arg0)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent arg0)
mouseReleased
in interface MouseListener
public void mouseDragged(MouseEvent arg0)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent arg0)
mouseMoved
in interface MouseMotionListener
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |