zinger.nibbles.drawers
Class IconSpaceOccupantDrawer

java.lang.Object
  |
  +--zinger.nibbles.drawers.IconSpaceOccupantDrawer
All Implemented Interfaces:
SpaceOccupantDrawer
Direct Known Subclasses:
ColorSpaceOccupantDrawer

public class IconSpaceOccupantDrawer
extends java.lang.Object
implements SpaceOccupantDrawer


Field Summary
protected  int height
           
protected  java.awt.Image icon
           
private static int id
           
protected static java.awt.Component IMAGE_COMPONENT
           
protected  java.awt.Image scaledIcon
           
private static java.awt.MediaTracker tracker
           
protected  int width
           
 
Constructor Summary
IconSpaceOccupantDrawer(java.awt.Image icon)
           
 
Method Summary
static SpaceOccupantDrawer load(java.lang.String key, java.util.Properties p)
           
static void loadImage(java.awt.Image image)
           
 void paint(java.awt.Graphics g, int x, int y, int width, int height, java.awt.image.ImageObserver imageObserver)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

IMAGE_COMPONENT

protected static final java.awt.Component IMAGE_COMPONENT

tracker

private static final java.awt.MediaTracker tracker

id

private static int id

icon

protected final java.awt.Image icon

width

protected int width

height

protected int height

scaledIcon

protected java.awt.Image scaledIcon
Constructor Detail

IconSpaceOccupantDrawer

public IconSpaceOccupantDrawer(java.awt.Image icon)
Method Detail

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y,
                  int width,
                  int height,
                  java.awt.image.ImageObserver imageObserver)
Specified by:
paint in interface SpaceOccupantDrawer

load

public static SpaceOccupantDrawer load(java.lang.String key,
                                       java.util.Properties p)

loadImage

public static void loadImage(java.awt.Image image)