All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----gerken.vehicles.SimulationParticipant
|
+----gerken.vehicles.ScenarioBorder
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.
Redraw the receiver (draws a rectangle around the scenario simulation region).
Redraw the receiver (draws a rectangle around the scenario simulation region).
The border for a scenario is always drawn in white.
Return a string describing this light.
The ScenarioBorder is an object that represents the border of a scenario simulation region and therefore has no single point location.
Perform border-specific simulation tasks
public ScenarioBorder()
public void display(Graphics g)
Redraw the receiver (draws a rectangle around the scenario simulation region).
public void displayBroken(Graphics g)
Redraw the receiver (draws a rectangle around the scenario simulation region).
public Color getColor()
The border for a scenario is always drawn in white. Return a Color representing white.
public String getDescription()
Return a string describing this light.
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.
public void step()
Perform border-specific simulation tasks
All Packages Class Hierarchy This Package Previous Next Index