com.threerings.media.image
Class MirageIcon

java.lang.Object
  extended by com.threerings.media.image.MirageIcon
All Implemented Interfaces:
Icon

public class MirageIcon
extends Object
implements Icon

Implements the Swing Icon interface with a mirage providing the image information.


Field Summary
protected  Mirage _mirage
           
 
Constructor Summary
MirageIcon(Mirage mirage)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 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
 

Field Detail

_mirage

protected Mirage _mirage
Constructor Detail

MirageIcon

public MirageIcon(Mirage mirage)
Method Detail

paintIcon

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

getIconWidth

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

getIconHeight

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