Package jmri.jmrit.timetable.swing
Class TimeTablePrintGraph
- java.lang.Object
-
- jmri.jmrit.timetable.swing.TimeTablePrintGraph
-
- All Implemented Interfaces:
java.awt.print.Printable
public class TimeTablePrintGraph extends java.lang.Object implements java.awt.print.Printable
Print a timetable graph.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int_scheduleId(package private) int_segmentId(package private) boolean_showTrainTimes(package private) boolean_twoPage
-
Constructor Summary
Constructors Constructor Description TimeTablePrintGraph(int segmentId, int scheduleId, boolean showTrainTimes, boolean twoPage)Initialize the data used by the printing methods
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intprint(java.awt.Graphics g, java.awt.print.PageFormat pf, int page)(package private) voidprintGraph()Setup the printer selection and start the print job.
-
-
-
Field Detail
-
_segmentId
final int _segmentId
-
_scheduleId
final int _scheduleId
-
_showTrainTimes
final boolean _showTrainTimes
-
_twoPage
final boolean _twoPage
-
-
Constructor Detail
-
TimeTablePrintGraph
public TimeTablePrintGraph(int segmentId, int scheduleId, boolean showTrainTimes, boolean twoPage)
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 Detail
-
printGraph
void printGraph()
Setup the printer selection and start the print job.
-
print
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int page) throws java.awt.print.PrinterException
- Specified by:
printin interfacejava.awt.print.Printable- Throws:
java.awt.print.PrinterException
-
-