ReportCat 1.1

li.netcat.print.util
Class SplitPrint

java.lang.Object
  extended byli.netcat.print.util.WrappedPrint
      extended byli.netcat.print.util.SplitPrint
All Implemented Interfaces:
Print

public class SplitPrint
extends WrappedPrint

The SplitPrint is used to divide a given Print into two or more columns.

Author:
Arthur Marxer

Constructor Summary
SplitPrint(Print print)
          Constructs a new SplitPrint that divides the given Print in two columns and uses a default gap of 10 pixel.
SplitPrint(Print print, int hgap)
          Constructs a new SplitPrint that divides the given Print in two columns using the given gap.
SplitPrint(Print print, int hgap, int nrOfColumns)
          Constructs a new SplitPrint that divides the given Print into the given number of columns using the given gap.
 
Method Summary
 int getHGap()
          Returns the gap that is placed between the columns.
 int getNrOfColumns()
          Returns the number of columns of that Print.
 java.awt.Dimension getPreferredSize(java.awt.Graphics g)
          Returns the preferred size of the Print.
 PrintIterator getPrintIterator()
          Factory method, that produces a PrintIerator.
 void setHGap(int hgap)
          Sets the gap that is placed between the columns.
 void setNrOfColumns(int nrOfColumns)
          Sets the number of columns of that Print.
 
Methods inherited from class li.netcat.print.util.WrappedPrint
getPrint, setPrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitPrint

public SplitPrint(Print print)
Constructs a new SplitPrint that divides the given Print in two columns and uses a default gap of 10 pixel.

Parameters:
print - The wrapped print, not null.

SplitPrint

public SplitPrint(Print print,
                  int hgap)
Constructs a new SplitPrint that divides the given Print in two columns using the given gap.

Parameters:
print - The wrapped print, not null.
hgap - The gap to be used in pixel.

SplitPrint

public SplitPrint(Print print,
                  int hgap,
                  int nrOfColumns)
Constructs a new SplitPrint that divides the given Print into the given number of columns using the given gap.

Parameters:
print - The wrapped print, not null.
hgap - The gap to be used in pixel.
nrOfColumns - The number of columns, must be >= 1.
Method Detail

getNrOfColumns

public int getNrOfColumns()
Returns the number of columns of that Print.

Returns:
The number of columns of that Print.

setNrOfColumns

public void setNrOfColumns(int nrOfColumns)
Sets the number of columns of that Print.

Parameters:
nrOfColumns - The number of columns, must be >= 1.

getHGap

public int getHGap()
Returns the gap that is placed between the columns.

Returns:
The gap that is placed between the columns.

setHGap

public void setHGap(int hgap)
Sets the gap that is placed between the columns.

Parameters:
hgap - The gap that is placed between the columns.

getPreferredSize

public java.awt.Dimension getPreferredSize(java.awt.Graphics g)
Description copied from interface: Print
Returns the preferred size of the Print.

Specified by:
getPreferredSize in interface Print
Overrides:
getPreferredSize in class WrappedPrint

getPrintIterator

public PrintIterator getPrintIterator()
Description copied from interface: Print
Factory method, that produces a PrintIerator. The PrintIterator is used like an enumeration to generate all Prints.

Specified by:
getPrintIterator in interface Print
Overrides:
getPrintIterator in class WrappedPrint

ReportCat 1.1

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation