Class StreamImageView
java.lang.Object
org.apache.pdfbox.debugger.streampane.StreamImageView
- All Implemented Interfaces:
ActionListener,EventListener,AncestorListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BufferedImageprivate JLabelprivate RotationMenuprivate JScrollPaneprivate ZoomMenu -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent actionEvent) private voidvoidancestorAdded(AncestorEvent ancestorEvent) voidancestorMoved(AncestorEvent ancestorEvent) voidancestorRemoved(AncestorEvent ancestorEvent) (package private) JComponentgetView()Returns the view i.e container containing image.private voidinitUI()private ImagezoomImage(BufferedImage origin, float scale, int rotation)
-
Field Details
-
image
-
scrollPane
-
label
-
zoomMenu
-
rotationMenu
-
-
Constructor Details
-
StreamImageView
StreamImageView(BufferedImage image) constructor.- Parameters:
image- instance of BufferedImage.
-
-
Method Details
-
initUI
private void initUI() -
getView
JComponent getView()Returns the view i.e container containing image.- Returns:
- A JComponent instance.
-
zoomImage
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
addImage
-
ancestorAdded
- Specified by:
ancestorAddedin interfaceAncestorListener
-
ancestorRemoved
- Specified by:
ancestorRemovedin interfaceAncestorListener
-
ancestorMoved
- Specified by:
ancestorMovedin interfaceAncestorListener
-