FreeHEP API
Version current

org.freehep.application
Class PrintHelper

java.lang.Object
  extended byorg.freehep.application.PrintHelper
All Implemented Interfaces:
Printable

public class PrintHelper
extends Object
implements Printable

Author:
tonyj
Source Code:
PrintHelper.java

Field Summary
static int ORIENTATION_BEST_FIT
           
static int ORIENTATION_LANDSCAPE
           
static int ORIENTATION_PORTRAIT
           
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
PrintHelper(Component target, Studio app)
           
 
Method Summary
 String getFooter()
           
 String getHeader()
           
 int getOrientation()
           
 boolean getScaleUp()
           
 boolean isDrawBorder()
           
 boolean isShowFooter()
           
 boolean isShowHeader()
           
 void print()
           
 int print(Graphics g, PageFormat pf, int pi)
           
 void printPreview(Component parent)
           
 void setDrawBorder(boolean drawBorder)
           
 void setFooter(String footer)
           
 void setHeader(String header)
           
 void setOrientation(int orientation)
           
 void setScaleUp(boolean scaleUp)
           
 void setShowFooter(boolean showFooter)
           
 void setShowHeader(boolean showHeader)
           
 void showOptionsDialog(Component parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PrintHelper

public PrintHelper(Component target,
                   Studio app)
Method Detail

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)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.