com.threerings.media.tile
Class TileIcon
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tile
protected Tile _tile
- The tile used to render this icon.
TileIcon
public TileIcon(Tile tile)
- Creates a tile icon that will use the supplied tile to render itself.
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