org.freehep.application
Class PrintHelper
java.lang.Object
org.freehep.application.PrintHelper
- All Implemented Interfaces:
- Printable
- public class PrintHelper
- extends Object
- implements Printable
- Author:
- tonyj
- Source Code:
- PrintHelper.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORIENTATION_BEST_FIT
public static final int ORIENTATION_BEST_FIT
- See Also:
- Constant Field Values
ORIENTATION_PORTRAIT
public static final int ORIENTATION_PORTRAIT
- See Also:
- Constant Field Values
ORIENTATION_LANDSCAPE
public static final int ORIENTATION_LANDSCAPE
- See Also:
- Constant Field Values
PrintHelper
public PrintHelper(Component target,
Studio app)
setDrawBorder
public void setDrawBorder(boolean drawBorder)
isDrawBorder
public boolean isDrawBorder()
setFooter
public void setFooter(String footer)
getFooter
public String getFooter()
setHeader
public void setHeader(String header)
getHeader
public String getHeader()
setOrientation
public void setOrientation(int orientation)
getOrientation
public int getOrientation()
setScaleUp
public void setScaleUp(boolean scaleUp)
getScaleUp
public boolean getScaleUp()
setShowFooter
public void setShowFooter(boolean showFooter)
isShowFooter
public boolean isShowFooter()
setShowHeader
public void setShowHeader(boolean showHeader)
isShowHeader
public boolean isShowHeader()
print
public int print(Graphics g,
PageFormat pf,
int pi)
throws PrinterException
- Specified by:
print
in interface Printable
- Throws:
PrinterException
print
public void print()
throws PrinterException
- Throws:
PrinterException
printPreview
public void printPreview(Component parent)
throws PrinterException
- Throws:
PrinterException
showOptionsDialog
public void showOptionsDialog(Component parent)
Copyright © 2000-2004 FreeHEP, All Rights Reserved.