jdbreport.model.print
Class ReportPage

java.lang.Object
  extended by java.awt.print.PageFormat
      extended by jdbreport.model.print.ReportPage
All Implemented Interfaces:
Cloneable

public class ReportPage
extends PageFormat

Version:
1.1 03/09/08
Author:
Andrey Kholmanskih

Nested Class Summary
static class ReportPage.PaperSize
           
 
Field Summary
 
Fields inherited from class java.awt.print.PageFormat
LANDSCAPE, PORTRAIT, REVERSE_LANDSCAPE
 
Constructor Summary
ReportPage()
           
 
Method Summary
static ReportPage.PaperSize findPaperSize(double width, double height)
           
 double getBottomMargin(Units unit)
           
 int getCopies()
           
 double getHeight(Units unit)
           
 double getImageableHeight(Units unit)
           
 double getImageableWidth(Units unit)
           
 double getLeftMargin(Units unit)
           
 ReportPage.PaperSize getPaperSize()
           
 double getRightMargin(Units unit)
           
 double getTopMargin(Units unit)
           
 double getWidth(Units unit)
           
 boolean isShrinkWidth()
           
 void setCopies(int copies)
           
 void setMargin(double left, double top, double right, double bottom, Units unit)
           
 void setPaperSize(ReportPage.PaperSize paperSize)
           
 void setShrinkWidth(boolean shrinkWidth)
           
 void setSize(double width, double height, Units unit)
           
 
Methods inherited from class java.awt.print.PageFormat
clone, getHeight, getImageableHeight, getImageableWidth, getImageableX, getImageableY, getMatrix, getOrientation, getPaper, getWidth, setOrientation, setPaper
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportPage

public ReportPage()
Method Detail

findPaperSize

public static ReportPage.PaperSize findPaperSize(double width,
                                                 double height)

isShrinkWidth

public boolean isShrinkWidth()

setShrinkWidth

public void setShrinkWidth(boolean shrinkWidth)

getHeight

public double getHeight(Units unit)

getImageableHeight

public double getImageableHeight(Units unit)

getImageableWidth

public double getImageableWidth(Units unit)

getWidth

public double getWidth(Units unit)

getLeftMargin

public double getLeftMargin(Units unit)

getTopMargin

public double getTopMargin(Units unit)

getRightMargin

public double getRightMargin(Units unit)

getBottomMargin

public double getBottomMargin(Units unit)

setSize

public void setSize(double width,
                    double height,
                    Units unit)

setMargin

public void setMargin(double left,
                      double top,
                      double right,
                      double bottom,
                      Units unit)

getCopies

public int getCopies()

setCopies

public void setCopies(int copies)

getPaperSize

public ReportPage.PaperSize getPaperSize()

setPaperSize

public void setPaperSize(ReportPage.PaperSize paperSize)