org.jpedal.examples.simpleviewer.utils
Class IconiseImage

java.lang.Object
  extended by 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)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconiseImage

public IconiseImage(java.awt.image.BufferedImage current_image)
Method Detail

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