|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.operations.trains.TrainPrintUtilities
public class TrainPrintUtilities
Train print utilities
| 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 |
|---|
public TrainPrintUtilities()
| Method Detail |
|---|
public static void printReport(File file,
String name,
boolean isPreview,
String fontName,
boolean isBuildReport,
String logoURL)
file - File to be printed or previewedname - Title of documentisPreview - true if previewfontName - optional font to use when printing documentisBuildReport - true if build reportlogoURL - optional pathname for logo
public static void printReport(File file,
String name,
boolean isPreview,
String fontName,
boolean isBuildReport,
String logoURL,
String printerName)
file - File to be printed or previewedname - Title of documentisPreview - true if previewfontName - optional font to use when printing documentisBuildReport - true if build reportlogoURL - optional pathname for logoprinterName - optional default printer name
public static void editReport(File file,
String name)
file - build filename - train namepublic static void openDesktopEditor(File file)
public static JComboBox getPrinterJComboBox()
public static String getDefaultPrinterName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||