Class TrafficLightIcon

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

public class TrafficLightIcon
extends becker.robots.icons.Icon

This class provides support for the Drivers' Ed project found here.

Author:
Chris D'Arcy

Field Summary
 
Fields inherited from class becker.robots.icons.Icon
transparent
 
Constructor Summary
TrafficLightIcon(java.lang.String imageFile)
          The TrafficLightIcon 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)
          TrafficLightIcon 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

TrafficLightIcon

public TrafficLightIcon(java.lang.String imageFile)
The TrafficLightIcon 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)
TrafficLightIcon 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