Class PrintTrainAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.operations.trains.tools.PrintTrainAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Direct Known Subclasses:
PrintTrainsAction
public class PrintTrainAction extends javax.swing.AbstractAction
Action to print a summary of a trainThis uses the older style printing, for compatibility with Java 1.1.8 in Macintosh MRJ
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
isPreview
Variable to set whether this is to be printed or previewed(package private) static java.lang.String
NEW_LINE
protected static int
NUMBER_OF_HEADER_LINES
(package private) static java.lang.String
TAB
(package private) TrainEditFrame
trainEditFrame
-
Constructor Summary
Constructors Constructor Description PrintTrainAction(boolean isPreview)
PrintTrainAction(boolean isPreview, TrainEditFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected void
printTrain(HardcopyWriter writer, Train train)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
NEW_LINE
static final java.lang.String NEW_LINE
- See Also:
- Constant Field Values
-
TAB
static final java.lang.String TAB
- See Also:
- Constant Field Values
-
trainEditFrame
TrainEditFrame trainEditFrame
-
isPreview
boolean isPreview
Variable to set whether this is to be printed or previewed
-
NUMBER_OF_HEADER_LINES
protected static final int NUMBER_OF_HEADER_LINES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrintTrainAction
public PrintTrainAction(boolean isPreview, TrainEditFrame frame)
-
PrintTrainAction
public PrintTrainAction(boolean isPreview)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
printTrain
protected void printTrain(HardcopyWriter writer, Train train)
-
-