Class CarIcon

java.lang.Object
  extended by becker.robots.icons.Icon
      extended by CarIcon

public class CarIcon
extends becker.robots.icons.Icon

This class provides support for the Drivers' Ed project found here. Specifically required for the constructor of the StudentDriver class.

Author:
Chris D'Arcy

Field Summary
 
Fields inherited from class becker.robots.icons.Icon
transparent
 
Constructor Summary
CarIcon(java.lang.String imageFile)
          The CarIcon constructor simply calls its superclass' (Icon) constructor before saving the imageFile parameter in its instance field by the same name.
 
Method Summary
 void paintIcon(java.awt.Graphics g)
          CarIcon overrides Icon's paintIcon method to enable the application of a gif file to represent the icon of this object.
 
Methods inherited from class becker.robots.icons.Icon
applyTransforms, getColor, getImage, getLabel, getRotation, getSize, getTransparency, hasChanged, markChanged, renderImage, setColor, setLabel, setSize, setTransparency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarIcon

public CarIcon(java.lang.String imageFile)
The CarIcon constructor simply calls its superclass' (Icon) constructor before saving the imageFile parameter in its instance field by the same name.

Method Detail

paintIcon

public void paintIcon(java.awt.Graphics g)
CarIcon overrides Icon's paintIcon method to enable the application of a gif file to represent the icon of this object.

Overrides:
paintIcon in class becker.robots.icons.Icon