|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kolls.railworld.TrainUIController
public abstract class TrainUIController
Deals with issues regarding a train as it appears on the map. Once instantiated, the programmer calls the act method, which in turns calls segment and car methods repeatadly.
Constructor Summary | |
---|---|
TrainUIController()
|
Method Summary | |
---|---|
void |
act(Train t)
"Walk" the train and the segments it is on and call segment
and car appropriately. |
abstract void |
car(Car c,
CLoc begin,
CLoc end)
For each Car, including a beginning and ending position. |
abstract void |
segment(Car c,
java.awt.geom.Line2D l)
For each visible segment (there may be multiple segments per car, or even 0 if the car is hidden). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrainUIController()
Method Detail |
---|
public abstract void segment(Car c, java.awt.geom.Line2D l)
c
- The Car
involved.l
- The current segment. There may be multiple calls to segment per Car.public abstract void car(Car c, CLoc begin, CLoc end)
c
- The Car
involved.begin
- Starting position.end
- Final position.public final void act(Train t)
segment
and car
appropriately.
t
- Train to act on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |