Package jmri.jmrit.timetable.swing
Class TimeTablePrintGraph
java.lang.Object
jmri.jmrit.timetable.swing.TimeTablePrintGraph
- All Implemented Interfaces:
Printable
Print a timetable graph.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int(package private) final int(package private) final boolean(package private) final booleanFields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS -
Constructor Summary
ConstructorsConstructorDescriptionTimeTablePrintGraph(int segmentId, int scheduleId, boolean showTrainTimes, boolean twoPage) Initialize the data used by the printing methods -
Method Summary
Modifier and TypeMethodDescriptionintprint(Graphics g, PageFormat pf, int page) (package private) voidSetup the printer selection and start the print job.
-
Field Details
-
_segmentId
-
_scheduleId
-
_showTrainTimes
-
_twoPage
-
-
Constructor Details
-
TimeTablePrintGraph
Initialize the data used by the printing methods- Parameters:
segmentId- The segment to be displayed. For multiple segment layouts separate graphs are required.scheduleId- The schedule to be used for this graph.showTrainTimes- When true, include the minutes portion of the train times at each station.twoPage- When true, format the output for two pages.
-
-
Method Details
-
printGraph
void printGraph()Setup the printer selection and start the print job. -
print
- Specified by:
printin interfacePrintable- Throws:
PrinterException
-