Class StreamImageView
- java.lang.Object
-
- org.apache.pdfbox.debugger.streampane.StreamImageView
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener,javax.swing.event.AncestorListener
class StreamImageView extends java.lang.Object implements java.awt.event.ActionListener, javax.swing.event.AncestorListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.image.BufferedImageimageprivate javax.swing.JLabellabelprivate RotationMenurotationMenuprivate javax.swing.JScrollPanescrollPaneprivate ZoomMenuzoomMenu
-
Constructor Summary
Constructors Constructor Description StreamImageView(java.awt.image.BufferedImage image)constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent actionEvent)private voidaddImage(java.awt.Image img)voidancestorAdded(javax.swing.event.AncestorEvent ancestorEvent)voidancestorMoved(javax.swing.event.AncestorEvent ancestorEvent)voidancestorRemoved(javax.swing.event.AncestorEvent ancestorEvent)(package private) javax.swing.JComponentgetView()Returns the view i.e container containing image.private voidinitUI()private java.awt.ImagezoomImage(java.awt.image.BufferedImage origin, float scale, int rotation)
-
-
-
Field Detail
-
image
private final java.awt.image.BufferedImage image
-
scrollPane
private javax.swing.JScrollPane scrollPane
-
label
private javax.swing.JLabel label
-
zoomMenu
private ZoomMenu zoomMenu
-
rotationMenu
private RotationMenu rotationMenu
-
-
Method Detail
-
initUI
private void initUI()
-
getView
javax.swing.JComponent getView()
Returns the view i.e container containing image.- Returns:
- A JComponent instance.
-
zoomImage
private java.awt.Image zoomImage(java.awt.image.BufferedImage origin, float scale, int rotation)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
addImage
private void addImage(java.awt.Image img)
-
ancestorAdded
public void ancestorAdded(javax.swing.event.AncestorEvent ancestorEvent)
- Specified by:
ancestorAddedin interfacejavax.swing.event.AncestorListener
-
ancestorRemoved
public void ancestorRemoved(javax.swing.event.AncestorEvent ancestorEvent)
- Specified by:
ancestorRemovedin interfacejavax.swing.event.AncestorListener
-
ancestorMoved
public void ancestorMoved(javax.swing.event.AncestorEvent ancestorEvent)
- Specified by:
ancestorMovedin interfacejavax.swing.event.AncestorListener
-
-