jas.plot.java2
Class PrintHelper12

java.lang.Object
  |
  +--jas.plot.PrintHelper
        |
        +--jas.plot.java2.PrintHelper12
All Implemented Interfaces:
java.awt.print.Printable

public class PrintHelper12
extends PrintHelper
implements java.awt.print.Printable


Fields inherited from class jas.plot.PrintHelper
debugPrinting, ORIENTATION_BEST_FIT, ORIENTATION_LANDSCAPE, ORIENTATION_PORTRAITE
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
PrintHelper12()
           
 
Method Summary
 int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pi)
           
 void printTarget(java.awt.Component target)
          Print the specified component
 void setOrientation(int orientation)
          Set the print orientation
 void setScaleUp(boolean scaleUp)
          Controls whether the PrintHelper will scale an image up to make it fill the page (PrintHelper will always try to shrink to fit)
 
Methods inherited from class jas.plot.PrintHelper
instance, isPrinting, setPrintingThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintHelper12

public PrintHelper12()
Method Detail

printTarget

public void printTarget(java.awt.Component target)
                 throws java.lang.Exception
Description copied from class: PrintHelper
Print the specified component
Overrides:
printTarget in class PrintHelper

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pf,
                 int pi)
          throws java.awt.print.PrinterException
Specified by:
print in interface java.awt.print.Printable

setOrientation

public void setOrientation(int orientation)
Description copied from class: PrintHelper
Set the print orientation
Overrides:
setOrientation in class PrintHelper
Following copied from class: jas.plot.PrintHelper
Parameters:
orientation - One of ORIENTATION_BEST_FIT,ORIENTATION_PORTRAITE,ORIENTATION_LANDSCAPE

setScaleUp

public void setScaleUp(boolean scaleUp)
Description copied from class: PrintHelper
Controls whether the PrintHelper will scale an image up to make it fill the page (PrintHelper will always try to shrink to fit)
Overrides:
setScaleUp in class PrintHelper