jas.plot.java2
Class PrintHelper12

java.lang.Object
  extended by jas.plot.PrintHelper
      extended by jas.plot.java2.PrintHelper12
All Implemented Interfaces:
Printable

public class PrintHelper12
extends PrintHelper
implements Printable


Field Summary
 
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(Graphics g, PageFormat pf, int pi)
           
 void printTarget(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, printingThread, 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(Component target)
                 throws Exception
Description copied from class: PrintHelper
Print the specified component

Specified by:
printTarget in class PrintHelper
Throws:
Exception

print

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

setOrientation

public void setOrientation(int orientation)
Description copied from class: PrintHelper
Set the print orientation

Specified by:
setOrientation in class 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)

Specified by:
setScaleUp in class PrintHelper


Copyright © 2000-2009 FreeHEP. All Rights Reserved.