ReportCat 1.1

li.netcat.print.util
Class GapPrint

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

public class GapPrint
extends java.lang.Object
implements Print

This Print can be used to add an additional gap e.g. to a GridPrint.

Author:
Arthur Marxer

Constructor Summary
GapPrint()
          Constructs a new GapPrint with a default gap of 5 pixel.
GapPrint(int gap)
          Constructs a new GapPrint with the given gap in pixel.
 
Method Summary
 int getGap()
          Returns the gap of this Print in pixel.
 java.awt.Dimension getPreferredSize(java.awt.Graphics g)
          Returns the preferred size of the Print.
 PrintIterator getPrintIterator()
          Factory method, that produces a PrintIerator.
 void setGap(int gap)
          Sets the gap of this Print in pixel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GapPrint

public GapPrint()
Constructs a new GapPrint with a default gap of 5 pixel.


GapPrint

public GapPrint(int gap)
Constructs a new GapPrint with the given gap in pixel.

Parameters:
gap - The gap of this Print in pixel.
Method Detail

getGap

public int getGap()
Returns the gap of this Print in pixel.

Returns:
The gap of this Print in pixel.

setGap

public void setGap(int gap)
Sets the gap of this Print in pixel.

Parameters:
gap - The gap of this Print in pixel.

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
Parameters:
g - The relevant Graphics object. It can be used to calculate the widths of strings.
Returns:
The preferred size of the Print.

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
Returns:
An instance of a PrintIterator that is able to iterate over the Print.

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