Package becker.robots.icons

Icons used to display robots, intersections, and other things in the robot world.

See:
          Description

Class Summary
AnimatedIcon An AnimatedIcon displays a sequence of icons, giving the appearance of movement or action.
BrokenIcon An icon that breaks or fragments another icon.
CircleIcon A circular icon.
CompositeIcon A CompositeIcon is composed of two or more icons which, taken together, form the desired icon.
FlasherIcon Display the current state of a Flasher, based on the flasher's current state.
Icon Icons are used to display Robots, Intersections and Things.
IntersectionIcon An icon to display an intersection.
LabelIcon An icon that shown as a printed label.
RobotIcon An icon used to display a robot.
ShapeIcon A ShapeIcon provides an easy means to make an icon of a particular shape and color.
StreetlightIcon An icon used to display a Streetlight.
WallIcon An icon to display a wall.
 

Enum Summary
IntersectionIcon.Area An enumeration to specify the different areas of an IntersectionIcon.
 

Package becker.robots.icons Description

Icons used to display robots, intersections, and other things in the robot world.

Changes made to an icon directly will not necessarily show up on the display unless setIcon is called again. That is, one approach to making a Wall yellow is:

Wall w = new Wall(myCity, 3, 5, Direction.SOUTH);
WallIcon wi = (WallIcon)w.getIcon();
wi.setColor(Color.YELLOW);
w.setIcon(wi);  // necessary for changes to be visible