Class PrintShowCarsInTrain


  • public class PrintShowCarsInTrain
    extends TrainCommon
    Print the cars in the train.

    This uses the older style printing, for compatibility with Java 1.1.8 in Macintosh MRJ

    • Method Detail

      • printCarsInTrain

        public void printCarsInTrain​(Train train,
                                     boolean isPreview)
        Prints the block order for a train at the train's current location.
        Parameters:
        train - the train.
        isPreview - if true preview, otherwise print
      • printCarsInTrainRoute

        public void printCarsInTrainRoute​(Train train,
                                          boolean isPreview)
        Prints the block order for a train for each station starting at the train's current location.
        Parameters:
        train - the train.
        isPreview - if true preview, otherwise print