net.sf.jomic.tools
Class IconJAI

java.lang.Object
  extended by net.sf.jomic.tools.IconJAI
All Implemented Interfaces:
Icon

public class IconJAI
extends Object
implements Icon

Icon to display JAI image. This is based on the JAI Demo source code provided by sun, with the following changes:

Author:
Thomas Aglassinger (bugfixes and cleanup)

Constructor Summary
IconJAI(RenderedImage newImage)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 RenderedImage getImage()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconJAI

public IconJAI(RenderedImage newImage)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

getImage

public RenderedImage getImage()

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon