jsynoptic.ui
Class JSynopticBatch

java.lang.Object
  extended by jsynoptic.base.PrintFormat
      extended by jsynoptic.ui.JSynopticBatch
All Implemented Interfaces:
java.awt.print.Pageable

public class JSynopticBatch
extends PrintFormat
implements java.awt.print.Pageable

Process commands in batch mode

Version:
1.0 2001
Author:
Nicolas Brodu

Nested Class Summary
 
Nested classes/interfaces inherited from class jsynoptic.base.PrintFormat
PrintFormat.PrintException
 
Field Summary
static JSynopticBatch batch
           
static Builtin builtInPlugin
          Plugin used to save synoptics
protected  java.util.Vector containers
           
protected  java.util.Vector files
           
static BasicMessageWriter messageWriter
           
protected  java.util.Vector plugins
           
static MenuResourceBundle resources
          Reuse the same resources as JSynoptic
 
Fields inherited from class jsynoptic.base.PrintFormat
formatsMap, IMAGE_FILE_MODE, pageFormat, PRINTER_FILE_MODE, PRINTER_MODE
 
Fields inherited from interface java.awt.print.Pageable
UNKNOWN_NUMBER_OF_PAGES
 
Constructor Summary
JSynopticBatch(java.util.Vector plugins, java.util.Vector commands)
           
 
Method Summary
 boolean addContainer(ShapesContainer sc, java.io.File f)
           
 int getNumberOfPages()
           
 java.awt.print.PageFormat getPageFormat(int index)
           
protected  Plugin getPluginToProcessFile(java.io.File f, int action, javax.swing.filechooser.FileFilter activeFilter)
           
 java.awt.print.Printable getPrintable(int index)
           
 void print(javax.print.PrintService ps)
           
 void processCommand(java.lang.String command)
           
 void saveAllSynoptics()
           
 
Methods inherited from class jsynoptic.base.PrintFormat
getFormat, getKnownPapers, print, printImage, printPrinter, setOrientation, setPaper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

public static MenuResourceBundle resources
Reuse the same resources as JSynoptic


messageWriter

public static BasicMessageWriter messageWriter

batch

public static JSynopticBatch batch

containers

protected java.util.Vector containers

files

protected java.util.Vector files

plugins

protected java.util.Vector plugins

builtInPlugin

public static Builtin builtInPlugin
Plugin used to save synoptics

Constructor Detail

JSynopticBatch

public JSynopticBatch(java.util.Vector plugins,
                      java.util.Vector commands)
Method Detail

addContainer

public boolean addContainer(ShapesContainer sc,
                            java.io.File f)

processCommand

public void processCommand(java.lang.String command)

saveAllSynoptics

public void saveAllSynoptics()

print

public void print(javax.print.PrintService ps)

getPluginToProcessFile

protected Plugin getPluginToProcessFile(java.io.File f,
                                        int action,
                                        javax.swing.filechooser.FileFilter activeFilter)

getNumberOfPages

public int getNumberOfPages()
Specified by:
getNumberOfPages in interface java.awt.print.Pageable

getPageFormat

public java.awt.print.PageFormat getPageFormat(int index)
Specified by:
getPageFormat in interface java.awt.print.Pageable

getPrintable

public java.awt.print.Printable getPrintable(int index)
Specified by:
getPrintable in interface java.awt.print.Pageable