jas.plot.java2
Class PrintHelper12
java.lang.Object
jas.plot.PrintHelper
jas.plot.java2.PrintHelper12
- All Implemented Interfaces:
- Printable
public class PrintHelper12
- extends PrintHelper
- implements Printable
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintHelper12
public PrintHelper12()
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.