jmri.jmrit.operations.trains
Class TrainPrintUtilities

java.lang.Object
  extended by jmri.jmrit.operations.trains.TrainPrintUtilities

public class TrainPrintUtilities
extends Object

Train print utilities

Author:
Daniel Boudreau (C) 2010

Constructor Summary
TrainPrintUtilities()
           
 
Method Summary
static void editReport(File file, String name)
          Creates a new build report file with the print detail numbers replaced by indentations.
static String getDefaultPrinterName()
           
static JComboBox getPrinterJComboBox()
           
static void openDesktopEditor(File file)
          This method replaces the commented out method above for compatibility with Java 1.5.
static void printReport(File file, String name, boolean isPreview, String fontName, boolean isBuildReport, String logoURL)
          Print or preview a train manifest, build report, or switch list.
static void printReport(File file, String name, boolean isPreview, String fontName, boolean isBuildReport, String logoURL, String printerName)
          Print or preview a train manifest, build report, or switch list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrainPrintUtilities

public TrainPrintUtilities()
Method Detail

printReport

public static void printReport(File file,
                               String name,
                               boolean isPreview,
                               String fontName,
                               boolean isBuildReport,
                               String logoURL)
Print or preview a train manifest, build report, or switch list.

Parameters:
file - File to be printed or previewed
name - Title of document
isPreview - true if preview
fontName - optional font to use when printing document
isBuildReport - true if build report
logoURL - optional pathname for logo

printReport

public static void printReport(File file,
                               String name,
                               boolean isPreview,
                               String fontName,
                               boolean isBuildReport,
                               String logoURL,
                               String printerName)
Print or preview a train manifest, build report, or switch list.

Parameters:
file - File to be printed or previewed
name - Title of document
isPreview - true if preview
fontName - optional font to use when printing document
isBuildReport - true if build report
logoURL - optional pathname for logo
printerName - optional default printer name

editReport

public static void editReport(File file,
                              String name)
Creates a new build report file with the print detail numbers replaced by indentations. Then calls open desktop editor.

Parameters:
file - build file
name - train name

openDesktopEditor

public static void openDesktopEditor(File file)
This method replaces the commented out method above for compatibility with Java 1.5.


getPrinterJComboBox

public static JComboBox getPrinterJComboBox()

getDefaultPrinterName

public static String getDefaultPrinterName()


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads