Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.maloi.evolvo.gui
Class AsyncImageIcon  view AsyncImageIcon download AsyncImageIcon.java

java.lang.Object
  extended byorg.maloi.evolvo.gui.AsyncImageIcon
All Implemented Interfaces:
javax.swing.Icon

public class AsyncImageIcon
extends java.lang.Object
implements javax.swing.Icon

Implements an Icon, similar to ImageIcon, except that it does not block while waiting for the image to be drawn.


Field Summary
(package private)  int height
           
(package private)  java.awt.Image i
           
(package private)  int width
           
 
Constructor Summary
AsyncImageIcon(java.awt.Image i, int width, int height)
           
 
Method Summary
 int getIconHeight()
          Returns the height of the icon.
 int getIconWidth()
          Returns the width of the icon.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Draws the icon at the location (x, y) on the specified graphics device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

java.awt.Image i

width

int width

height

int height
Constructor Detail

AsyncImageIcon

public AsyncImageIcon(java.awt.Image i,
                      int width,
                      int height)
Method Detail

getIconWidth

public int getIconWidth()
Description copied from interface: javax.swing.Icon
Returns the width of the icon.

Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Description copied from interface: javax.swing.Icon
Returns the height of the icon.

Specified by:
getIconHeight in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Description copied from interface: javax.swing.Icon
Draws the icon at the location (x, y) on the specified graphics device.

Specified by:
paintIcon in interface javax.swing.Icon