becker.robots.icons
Class RobotIcon
java.lang.Object
becker.robots.icons.Icon
becker.robots.icons.ShapeIcon
becker.robots.icons.RobotIcon
- All Implemented Interfaces:
- IColor
public class RobotIcon
- extends ShapeIcon
An icon used to display a robot.
- Author:
- Byron Weber Becker
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. |
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 |
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).