class StreamImageView
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.AncestorListener
Modifier and Type | Field and Description |
---|---|
private java.awt.image.BufferedImage |
image |
private javax.swing.JLabel |
label |
private RotationMenu |
rotationMenu |
private javax.swing.JScrollPane |
scrollPane |
private ZoomMenu |
zoomMenu |
Constructor and Description |
---|
StreamImageView(java.awt.image.BufferedImage image)
constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent) |
private void |
addImage(java.awt.Image img) |
void |
ancestorAdded(javax.swing.event.AncestorEvent ancestorEvent) |
void |
ancestorMoved(javax.swing.event.AncestorEvent ancestorEvent) |
void |
ancestorRemoved(javax.swing.event.AncestorEvent ancestorEvent) |
(package private) javax.swing.JComponent |
getView()
Returns the view i.e container containing image.
|
private void |
initUI() |
private java.awt.Image |
zoomImage(java.awt.image.BufferedImage origin,
float scale,
int rotation) |
private final java.awt.image.BufferedImage image
private javax.swing.JScrollPane scrollPane
private javax.swing.JLabel label
private ZoomMenu zoomMenu
private RotationMenu rotationMenu
StreamImageView(java.awt.image.BufferedImage image)
image
- instance of BufferedImage.private void initUI()
javax.swing.JComponent getView()
private java.awt.Image zoomImage(java.awt.image.BufferedImage origin, float scale, int rotation)
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
private void addImage(java.awt.Image img)
public void ancestorAdded(javax.swing.event.AncestorEvent ancestorEvent)
ancestorAdded
in interface javax.swing.event.AncestorListener
public void ancestorRemoved(javax.swing.event.AncestorEvent ancestorEvent)
ancestorRemoved
in interface javax.swing.event.AncestorListener
public void ancestorMoved(javax.swing.event.AncestorEvent ancestorEvent)
ancestorMoved
in interface javax.swing.event.AncestorListener