|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.ImageIcon
br.usp.ime.klava.segmentit.gui.ZoomableImageIcon
public class ZoomableImageIcon
Extension of ImageIcon, with zoom and opacity support for
visualization purposes.
| Constructor Summary | |
|---|---|
ZoomableImageIcon()
Calls the ImageIcon constructor with the same signature. |
|
ZoomableImageIcon(byte[] arg0)
Calls the ImageIcon constructor with the same signature. |
|
ZoomableImageIcon(byte[] arg0,
java.lang.String arg1)
Calls the ImageIcon constructor with the same signature. |
|
ZoomableImageIcon(java.awt.Image arg0)
Calls the ImageIcon constructor with the same signature. |
|
ZoomableImageIcon(java.awt.Image arg0,
java.lang.String arg1)
Calls the ImageIcon constructor with the same signature. |
|
ZoomableImageIcon(java.lang.String arg0)
Calls the ImageIcon constructor with the same signature. |
|
ZoomableImageIcon(java.lang.String arg0,
java.lang.String arg1)
Calls the ImageIcon constructor with the same signature. |
|
ZoomableImageIcon(java.net.URL arg0)
Calls the ImageIcon constructor with the same signature. |
|
ZoomableImageIcon(java.net.URL arg0,
java.lang.String arg1)
Calls the ImageIcon constructor with the same signature. |
|
| Method Summary | |
|---|---|
double |
getZoomLevel()
Getter of the zoomLevel property. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paints this image given by the ImageIcon.getImage() method
using the current zoomLevel and opacity. |
void |
setOpacity(float opacity)
Setter of the opacity property. |
void |
setZoomLevel(double zoomLevel)
Setter of the zoomLevel property. |
| Methods inherited from class javax.swing.ImageIcon |
|---|
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, setDescription, setImage, setImageObserver, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZoomableImageIcon(java.lang.String arg0,
java.lang.String arg1)
ImageIcon constructor with the same signature.
arg0 - arg1 - public ZoomableImageIcon(java.lang.String arg0)
ImageIcon constructor with the same signature.
arg0 -
public ZoomableImageIcon(java.net.URL arg0,
java.lang.String arg1)
ImageIcon constructor with the same signature.
arg0 - arg1 - public ZoomableImageIcon(java.net.URL arg0)
ImageIcon constructor with the same signature.
arg0 -
public ZoomableImageIcon(java.awt.Image arg0,
java.lang.String arg1)
ImageIcon constructor with the same signature.
arg0 - arg1 - public ZoomableImageIcon(java.awt.Image arg0)
ImageIcon constructor with the same signature.
arg0 -
public ZoomableImageIcon(byte[] arg0,
java.lang.String arg1)
ImageIcon constructor with the same signature.
arg0 - arg1 - public ZoomableImageIcon(byte[] arg0)
ImageIcon constructor with the same signature.
arg0 - public ZoomableImageIcon()
ImageIcon constructor with the same signature.
| Method Detail |
|---|
public double getZoomLevel()
zoomLevel property.
zoomLevelpublic void setZoomLevel(double zoomLevel)
zoomLevel property.
zoomLevel - the value to be assigned to the zoomLevel
propertypublic void setOpacity(float opacity)
opacity property.
opacity - the value to be assigned to the opacity property
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
ImageIcon.getImage() method
using the current zoomLevel and opacity.
paintIcon in interface javax.swing.IconpaintIcon in class javax.swing.ImageIcon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||