com.genedavissoftware.printing
Class GDSPrinting

java.lang.Object
  extended bycom.genedavissoftware.printing.GDSPrinting
Direct Known Subclasses:
ComponentPrint, FormattedPrint, HtmlPrint, PlainPrint

public abstract class GDSPrinting
extends java.lang.Object

The parent of all classes used for printing. It provides methods for displaying footers, headers and page numbers on the top or bottom of the page.

This will likely be the last class to be finished, because placement on the page, and makeing the display look good in the preview will take lots of work. I'm sure I'll finish it eventually


Field Summary
static int BOTTOM
          Align bottom
static int CENTER
          Align center
static int LEFT
          Align left
static int RIGHT
          Align right
static int TOP
          Align top
 
Constructor Summary
GDSPrinting()
           
 
Method Summary
 void setFooter(java.lang.String head)
          Set the text for the footer.
 void setFooterAlignment(int align)
          Change the horizontal alignment of the footer.
 void setHeader(java.lang.String head)
          Set the text for the header.
 void setHeaderAlignment(int align)
          Change the horizontal alignment of the header.
 void setInitialPageNumber(int page)
          Change the initial page number.
 void setPageNumberHorizontalAlignment(int align)
          Change the horizontal alignment of the page number.
 void setPageNumberVerticalAlignment(int align)
          Change the vertical alignment of the page number.
 void showFooter(boolean show)
          Choose whether to display the current footer.
 void showHeader(boolean show)
          Choose whether to display the current header.
 void showPageNumber(boolean show)
          Choose whether to display the current page number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
Align left

See Also:
Constant Field Values

CENTER

public static final int CENTER
Align center

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
Align right

See Also:
Constant Field Values

TOP

public static final int TOP
Align top

See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
Align bottom

See Also:
Constant Field Values
Constructor Detail

GDSPrinting

public GDSPrinting()
Method Detail

setInitialPageNumber

public void setInitialPageNumber(int page)
Change the initial page number. The default is 1.


showPageNumber

public void showPageNumber(boolean show)
Choose whether to display the current page number. The default is false.


setPageNumberHorizontalAlignment

public void setPageNumberHorizontalAlignment(int align)
Change the horizontal alignment of the page number. Choose from:

GDSPrinting.LEFT
GDSPrinting.CENTER
GDSPrinting.RIGHT

The default is GDSPrinting.RIGHT.


setPageNumberVerticalAlignment

public void setPageNumberVerticalAlignment(int align)
Change the vertical alignment of the page number. Choose from:

GDSPrinting.TOP
GDSPrinting.BOTTOM

The default is GDSPrinting.BOTTOM.


setHeader

public void setHeader(java.lang.String head)
Set the text for the header. The default is an empty String.


showHeader

public void showHeader(boolean show)
Choose whether to display the current header. The default is false.


setHeaderAlignment

public void setHeaderAlignment(int align)
Change the horizontal alignment of the header. Choose from:

GDSPrinting.LEFT
GDSPrinting.CENTER
GDSPrinting.RIGHT

The default is GDSPrinting.RIGHT.


setFooter

public void setFooter(java.lang.String head)
Set the text for the footer. The default is an empty String.


showFooter

public void showFooter(boolean show)
Choose whether to display the current footer. The default is false.


setFooterAlignment

public void setFooterAlignment(int align)
Change the horizontal alignment of the footer. Choose from:

GDSPrinting.LEFT
GDSPrinting.CENTER
GDSPrinting.RIGHT

The default is GDSPrinting.RIGHT.







SourceForge.net Logo