Class Print

java.lang.Object
  |
  +--PrefEditor
        |
        +--Print
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.print.Pageable, java.awt.print.Printable, java.io.Serializable

public class Print
extends PrefEditor
implements java.io.Serializable, java.awt.print.Printable, java.awt.print.Pageable, java.awt.event.ActionListener

See Also:
Serialized Form

Field Summary
 int compress
           
 boolean fhgif
           
 boolean fhjpg
           
 boolean fhpdf
           
 boolean fhpng
           
 boolean fhps
           
 boolean fhsvg
           
 boolean fhswf
           
 java.io.File file
           
(package private)  javax.swing.JLabel filelab
           
static java.awt.print.PageFormat format
           
static double imagescale
           
 java.util.Vector jobpages
           
 boolean jprinter
           
 boolean oldpng
           
 boolean onefile
           
static Print printer
           
private static long serialVersionUID
           
static int sliceincrement
           
 
Fields inherited from class PrefEditor
dialog, fields, name, owner, pane, scroll, targets
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.print.Pageable
UNKNOWN_NUMBER_OF_PAGES
 
Constructor Summary
Print()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void apply()
           
 int getNumberOfPages()
           
 java.awt.print.PageFormat getPageFormat(int pageindex)
           
 java.awt.print.Printable getPrintable(int pageindex)
           
 void hepPrint(Carto source, java.util.Vector pages, ThreadMessage status)
           
 void iPrint(Carto source, java.util.Vector pages, ThreadMessage status)
           
 void newPane()
           
static java.io.File pickFile()
           
 void pPrint(Carto source, java.util.Vector pages, ThreadMessage status)
           
 void preview()
           
 int print(java.awt.Graphics g, java.awt.print.PageFormat format, int pageindex)
           
 void printAll(Carto source, ThreadMessage status)
           
 void printPages(Carto source, java.util.Vector pages, ThreadMessage status)
           
 void printSelected(CartoFrame source, ThreadMessage status)
           
static void printSetup()
           
 void save()
           
 
Methods inherited from class PrefEditor
abandon, addCheck, addCheck, addColor, addColor, addDouble, addDouble, addDouble, addInt, addInt, addlabeled, addlabeled, addRadio, addRadio, addString, addString, addUnit, addUnit, getBarePane, getPane, readDouble, readInt, reset, setParm, setParm, setParm, setParm, setParm, setRadio, setUnit, setUnit, setUnit, setup, skip, skip, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

printer

public static Print printer

oldpng

public boolean oldpng

fhpng

public boolean fhpng

fhjpg

public boolean fhjpg

fhgif

public boolean fhgif

fhpdf

public boolean fhpdf

fhps

public boolean fhps

fhsvg

public boolean fhsvg

fhswf

public boolean fhswf

jprinter

public boolean jprinter

onefile

public boolean onefile

file

public java.io.File file

compress

public int compress

filelab

transient javax.swing.JLabel filelab

jobpages

public transient java.util.Vector jobpages

format

public static java.awt.print.PageFormat format

sliceincrement

public static int sliceincrement

imagescale

public static double imagescale
Constructor Detail

Print

public Print()
Method Detail

newPane

public void newPane()
             throws java.lang.NoSuchFieldException
Specified by:
newPane in class PrefEditor
java.lang.NoSuchFieldException

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

pickFile

public static java.io.File pickFile()

save

public void save()
Overrides:
save in class PrefEditor

apply

public void apply()
Specified by:
apply in class PrefEditor

printAll

public void printAll(Carto source,
                     ThreadMessage status)

printSelected

public void printSelected(CartoFrame source,
                          ThreadMessage status)

printPages

public void printPages(Carto source,
                       java.util.Vector pages,
                       ThreadMessage status)

printSetup

public static void printSetup()

hepPrint

public void hepPrint(Carto source,
                     java.util.Vector pages,
                     ThreadMessage status)

pPrint

public void pPrint(Carto source,
                   java.util.Vector pages,
                   ThreadMessage status)

iPrint

public void iPrint(Carto source,
                   java.util.Vector pages,
                   ThreadMessage status)

preview

public void preview()

getNumberOfPages

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

getPrintable

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

getPageFormat

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

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat format,
                 int pageindex)
Specified by:
print in interface java.awt.print.Printable