becker.robots.icons
Class StreetlightIcon

java.lang.Object
  extended by becker.robots.icons.Icon
      extended by becker.robots.icons.CompositeIcon
          extended by becker.robots.icons.StreetlightIcon

public class StreetlightIcon
extends CompositeIcon

An icon used to display a Streetlight.

Author:
Byron Weber Becker

Field Summary
 
Fields inherited from class becker.robots.icons.Icon
transparent
 
Constructor Summary
StreetlightIcon(Color lightColor, Color postColor, double relativeSize)
          Construct a new icon.
 
Method Summary
 
Methods inherited from class becker.robots.icons.CompositeIcon
applyTransforms, componentIcon, getColor, hasChanged, markChanged, numComponents, renderImage, setColor
 
Methods inherited from class becker.robots.icons.Icon
getImage, getLabel, getRotation, getSize, getTransparency, paintIcon, setLabel, setSize, setTransparency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreetlightIcon

public StreetlightIcon(Color lightColor,
                       Color postColor,
                       double relativeSize)
Construct a new icon.

Parameters:
lightColor - The color used for the light shining from the streetlight.
postColor - The color used for the streetlight's post.
relativeSize - A value between 0.0 (very small) and 1.0 (large).