| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjas.plot.PrintHelper
public abstract class PrintHelper
| Field Summary | |
|---|---|
| protected static boolean | debugPrinting | 
| static int | ORIENTATION_BEST_FIT | 
| static int | ORIENTATION_LANDSCAPE | 
| static int | ORIENTATION_PORTRAITE | 
| Constructor Summary | |
|---|---|
| PrintHelper() | |
| Method Summary | |
|---|---|
| static PrintHelper | instance()Create an instance of a PrintHelper | 
| static boolean | isPrinting()Method to allow component being painted to find out if it is being printed. | 
|  Thread | printingThread() | 
| abstract  void | printTarget(Component target)Print the specified component | 
| abstract  void | setOrientation(int orientation)Set the print orientation | 
|  void | setPrintingThread(Thread thread) | 
| abstract  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 | 
| Field Detail | 
|---|
public static final int ORIENTATION_BEST_FIT
public static final int ORIENTATION_PORTRAITE
public static final int ORIENTATION_LANDSCAPE
protected static final boolean debugPrinting
| Constructor Detail | 
|---|
public PrintHelper()
| Method Detail | 
|---|
public abstract void printTarget(Component target)
                          throws Exception
Exceptionpublic static PrintHelper instance()
public abstract void setOrientation(int orientation)
orientation - One of ORIENTATION_BEST_FIT,ORIENTATION_PORTRAITE,ORIENTATION_LANDSCAPEpublic abstract void setScaleUp(boolean scaleUp)
public static boolean isPrinting()
public void setPrintingThread(Thread thread)
public Thread printingThread()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||