com.threerings.media.tile
Class TileIcon

java.lang.Object
  extended by com.threerings.media.tile.TileIcon
All Implemented Interfaces:
Icon

public class TileIcon
extends Object
implements Icon

Implements the icon interface, using a Tile to render the icon image.


Field Summary
protected  Tile _tile
          The tile used to render this icon.
 
Constructor Summary
TileIcon(Tile tile)
          Creates a tile icon that will use the supplied tile to render itself.
 
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

_tile

protected Tile _tile
The tile used to render this icon.

Constructor Detail

TileIcon

public TileIcon(Tile tile)
Creates a tile icon that will use the supplied tile to render itself.

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