All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gerken.vehicles.ScenarioBorder

java.lang.Object
   |
   +----gerken.vehicles.SimulationParticipant
           |
           +----gerken.vehicles.ScenarioBorder

public class ScenarioBorder
extends SimulationParticipant

A ScenarioBorder is a simple SimuationParticipant whose sole purpose in life is to draw a rectangle around the simulation display so that the user can see exactly where the simulation area really is.

This software is provided on an as-is basis and is copyright Chris Gerken. The only rights granted to you are to enjoy and learn from this software.


Constructor Index

 o ScenarioBorder()
Return a new ScenarioBorder.

Method Index

 o display(Graphics)

Redraw the receiver (draws a rectangle around the scenario simulation region).

 o displayBroken(Graphics)

Redraw the receiver (draws a rectangle around the scenario simulation region).

 o getColor()

The border for a scenario is always drawn in white.

 o getDescription()

Return a string describing this light.

 o hasPointLocation()

The ScenarioBorder is an object that represents the border of a scenario simulation region and therefore has no single point location.

 o step()

Perform border-specific simulation tasks

Constructors

 o ScenarioBorder
 public ScenarioBorder()
Return a new ScenarioBorder. The new object will get all necessary display information from its controlling scenario object.

Methods

 o display
 public void display(Graphics g)

Redraw the receiver (draws a rectangle around the scenario simulation region).

Parameters:
g - Graphics
Overrides:
display in class SimulationParticipant
 o displayBroken
 public void displayBroken(Graphics g)

Redraw the receiver (draws a rectangle around the scenario simulation region).

Parameters:
g - Graphics
Overrides:
displayBroken in class SimulationParticipant
 o getColor
 public Color getColor()

The border for a scenario is always drawn in white. Return a Color representing white.

Returns:
java.awt.Color
Overrides:
getColor in class SimulationParticipant
 o getDescription
 public String getDescription()

Return a string describing this light.

Returns:
java.lang.String
Overrides:
getDescription in class SimulationParticipant
 o hasPointLocation
 public boolean hasPointLocation()

The ScenarioBorder is an object that represents the border of a scenario simulation region and therefore has no single point location. Return false.

Returns:
boolean
Overrides:
hasPointLocation in class SimulationParticipant
 o step
 public void step()

Perform border-specific simulation tasks

Overrides:
step in class SimulationParticipant

All Packages  Class Hierarchy  This Package  Previous  Next  Index