ReportCat 1.1

li.netcat.print.util
Class RotatePrint

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

public class RotatePrint
extends WrappedPrint

This Print is used to rotate a given Print by 0, 90, 180 or 270 degrees. This class needs the functionality of Graphics2D.

Author:
Arthur Marxer

Constructor Summary
RotatePrint(Print print)
          Constructs a new RotatePrint to rotate the given print.
RotatePrint(Print print, int rotate)
          Constructs a new RotatePrint to rotate the given print.
 
Method Summary
 java.awt.Dimension getPreferredSize(java.awt.Graphics g)
          Returns the preferred size of the Print.
 PrintIterator getPrintIterator()
          Factory method, that produces a PrintIerator.
 void setRotate(int rotate)
          Sets the rotate value.
 
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

RotatePrint

public RotatePrint(Print print)
Constructs a new RotatePrint to rotate the given print.

Parameters:
print - The print to be rotated.

RotatePrint

public RotatePrint(Print print,
                   int rotate)
Constructs a new RotatePrint to rotate the given print.

Parameters:
print - The print to be rotated.
rotate - One of the values ROTATE_*.
Method Detail

setRotate

public void setRotate(int rotate)
Sets the rotate value.

Parameters:
rotate - One of the values ROTATE_*.

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