ReportCat 1.1

li.netcat.print.util
Class InsetsPrint

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

public class InsetsPrint
extends WrappedPrint

Implementation of a Print that adds insets to a given Print.

Author:
Arthur Marxer

Constructor Summary
InsetsPrint(Print print, java.awt.Insets insets)
          Constructs a new InsetsPrint with the given print and the given insets.
 
Method Summary
 java.awt.Insets getInsets()
          Returns a copy of the instes.
 java.awt.Dimension getPreferredSize(java.awt.Graphics g)
          Returns the preferred size of the Print.
 PrintIterator getPrintIterator()
          Factory method, that produces a PrintIerator.
 void setInsets(java.awt.Insets insets)
          Sets the insets of the target.
 
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

InsetsPrint

public InsetsPrint(Print print,
                   java.awt.Insets insets)
Constructs a new InsetsPrint with the given print and the given insets.

Parameters:
print - The print that gets insets.
insets - The definition of the insets.
Method Detail

getInsets

public java.awt.Insets getInsets()
Returns a copy of the instes.

Returns:
A copy of the insets.

setInsets

public void setInsets(java.awt.Insets insets)
Sets the insets of the target. This parameter is copied.

Parameters:
insets - The new value of insets, can be null.

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