becker.robots.icons
Class RobotIcon

java.lang.Object
  extended by becker.robots.icons.Icon
      extended by becker.robots.icons.ShapeIcon
          extended by becker.robots.icons.RobotIcon
All Implemented Interfaces:
IColor

public class RobotIcon
extends ShapeIcon

An icon used to display a robot.

Author:
Byron Weber Becker

Field Summary
 
Fields inherited from class becker.robots.icons.Icon
transparent
 
Constructor Summary
RobotIcon(Color color)
          Construct a new icon of the given color with the default size.
RobotIcon(Color color, double relativeSize)
          Construct a new icon with the given color and size.
 
Method Summary
 
Methods inherited from class becker.robots.icons.ShapeIcon
renderImage
 
Methods inherited from class becker.robots.icons.Icon
applyTransforms, getColor, getImage, getLabel, getRotation, getSize, getTransparency, hasChanged, markChanged, paintIcon, setColor, setLabel, setSize, setTransparency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface becker.robots.IColor
getColor, getTransparency, setColor, setTransparency
 

Constructor Detail

RobotIcon

public RobotIcon(Color color)
Construct a new icon of the given color with the default size.


RobotIcon

public RobotIcon(Color color,
                 double relativeSize)
Construct a new icon with the given color and size.

Parameters:
color - The icon's color.
relativeSize - A number between 0.0 (very small) and 1.0 (large).