org.jpedal.examples.simpleviewer.utils
Class IconiseImage
java.lang.Object
org.jpedal.examples.simpleviewer.utils.IconiseImage
- All Implemented Interfaces:
- javax.swing.Icon
public class IconiseImage
- extends java.lang.Object
- implements javax.swing.Icon
Used in GUI example code.
Wrapper for putting image on display
|
Constructor Summary |
IconiseImage(java.awt.image.BufferedImage current_image)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconiseImage
public IconiseImage(java.awt.image.BufferedImage current_image)
paintIcon
public final void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon
getIconWidth
public final int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon
getIconHeight
public final int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon