Class PrintShowCarsInTrain
- java.lang.Object
-
- jmri.jmrit.operations.trains.TrainCommon
-
- jmri.jmrit.operations.trains.tools.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
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CarManager
carManager
(package private) java.util.List<Car>
carsInTrain
(package private) static int
fieldSize
(package private) static java.lang.String
NEW_LINE
(package private) static java.lang.String
TAB
-
Fields inherited from class jmri.jmrit.operations.trains.TrainCommon
_dropCars, _pickupCars, BLANK_LINE, BUILD_REPORT_CHAR, ENGINE, HORIZONTAL_LINE_CHAR, HYPHEN, IS_MANIFEST, IS_TWO_COLUMN_TRACK, LOCAL, PAPER_MARGINS, PICKUP, SPACE, TEXT_COLOR_DONE, TEXT_COLOR_END, TEXT_COLOR_START, VERTICAL_LINE_CHAR
-
-
Constructor Summary
Constructors Constructor Description PrintShowCarsInTrain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printCarsAtLocation(HardcopyWriter writer, Train train, RouteLocation rl)
void
printCarsInTrain(Train train, boolean isPreview)
Prints the block order for a train at the train's current location.void
printCarsInTrainRoute(Train train, boolean isPreview)
Prints the block order for a train for each station starting at the train's current location.void
printCarsRoute(HardcopyWriter writer, Train train)
-
Methods inherited from class jmri.jmrit.operations.trains.TrainCommon
addCarsLocationUnknown, addLine, addLine, blockCarsByTrack, blockCarsByTrackNameTwoColumn, blockCarsTwoColumn, blockLocosTwoColumn, clearUtilityCarTypes, convertStringToDate, countPickupUtilityCars, countSetoutUtilityCars, countUtilityCars, createTabIfNeeded, dropCar, dropCar, dropEngine, dropEngines, formatColorString, formatStringToCommaSeparated, getDate, getDate, getDropCarHeader, getDropEngineHeader, getISO8601Date, getLineLength, getLocalMoveHeader, getManifestHeaderLineLength, getPageSize, getPickupCarHeader, getPickupEngineHeader, getSwitchListTrainStatus, getTextColor, getTextColorName, getTextColorString, getTrainMessage, isNextCar, isNextCar, isThereWorkAtLocation, isThereWorkAtLocation, localMoveCar, newLine, newLine, padAndTruncate, padAndTruncateIfNeeded, padString, pickupCar, pickUpCar, pickUpCarTruncated, pickupEngine, pickupEngines, pickupUtilityCars, pickupUtilityCars, printCarHeader, printDropCarHeader, printDropEngineHeader, printEngineHeader, printHorizontalLine, printHorizontalLine, printLocalCarMoveHeader, printPickupCarHeader, printPickupEngineHeader, printTrackComments, printTrackNameHeader, setoutUtilityCars, setoutUtilityCars, setoutUtilityCars, splitString, tabString, truncatedDropCar
-
-
-
-
Field Detail
-
NEW_LINE
static final java.lang.String NEW_LINE
- See Also:
- Constant Field Values
-
carManager
CarManager carManager
-
fieldSize
static int fieldSize
-
TAB
static final java.lang.String TAB
-
carsInTrain
java.util.List<Car> carsInTrain
-
-
Constructor Detail
-
PrintShowCarsInTrain
public PrintShowCarsInTrain()
-
-
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
-
printCarsAtLocation
public void printCarsAtLocation(HardcopyWriter writer, Train train, RouteLocation rl) throws java.io.IOException
- Throws:
java.io.IOException
-
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
-
printCarsRoute
public void printCarsRoute(HardcopyWriter writer, Train train) throws java.io.IOException
- Throws:
java.io.IOException
-
-