com.arctorus.documents
Class PageSize

java.lang.Object
  extended by com.arctorus.documents.PageSize

public final class PageSize
extends java.lang.Object

Defines page size in a document.


Method Summary
 short getResolution()
          Gets the page resolution in pixels per inch.
 java.awt.Dimension getSizeInch()
          Gets the page size of a document in inches.
 java.awt.Dimension getSizeMm()
          Gets the page size of a document in millimeters.
 java.awt.Dimension getSizePt()
          Gets the page size of a document in points.
 java.awt.Dimension getSizePx()
          Gets the page size of a document in pixels.
 PageSizeType getSizeType()
          Gets standard type of a page.
 void setResolution(short resolution)
          Sets the page resolution in pixels per inch.
 void setSizeInch(java.awt.Dimension sizeInch)
          Sets the page size of a document in inches.
 void setSizeInch(double widthInch, double heightInch)
          Sets the page size of a document in inches.
 void setSizeMm(java.awt.Dimension sizeMm)
          Sets the page size of a document in millimeters.
 void setSizeMm(double widthMm, double heightMm)
          Sets the page size of a document in millimeters.
 void setSizePt(java.awt.Dimension sizePt)
          Sets the page size of a document in points.
 void setSizePt(double widthPt, double heightPt)
          Sets the page size of a document in points.
 void setSizePx(java.awt.Dimension sizePx)
          Sets the page size of a document in pixels.
 void setSizePx(double widthPx, double heightPx)
          Sets the page size of a document in pixels.
 void setSizeType(PageSizeType sizeType)
          Sets standard type of a page.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSizeType

public PageSizeType getSizeType()
Gets standard type of a page.


setSizeType

public void setSizeType(PageSizeType sizeType)
Sets standard type of a page. Reset type and orientation of the page. Doesn't change page resolution.

Parameters:
sizeType - standard page type.

getResolution

public short getResolution()
Gets the page resolution in pixels per inch.


setResolution

public void setResolution(short resolution)
Sets the page resolution in pixels per inch.

Parameters:
resolution - page resolution.

getSizePx

public java.awt.Dimension getSizePx()
Gets the page size of a document in pixels.


setSizePx

public void setSizePx(java.awt.Dimension sizePx)
Sets the page size of a document in pixels.

Parameters:
sizePx - page size of a document in pixels.

setSizePx

public void setSizePx(double widthPx,
                      double heightPx)
Sets the page size of a document in pixels.

Parameters:
widthPx - width of a document page in pixels.
heightPx - height of a document page in pixels.

getSizeMm

public java.awt.Dimension getSizeMm()
Gets the page size of a document in millimeters.


setSizeMm

public void setSizeMm(java.awt.Dimension sizeMm)
Sets the page size of a document in millimeters.

Parameters:
sizeMm - page size of a document in millimeters.

setSizeMm

public void setSizeMm(double widthMm,
                      double heightMm)
Sets the page size of a document in millimeters.

Parameters:
widthMm - width of a document page in millimeters.
heightMm - height of a document page in millimeters.

getSizeInch

public java.awt.Dimension getSizeInch()
Gets the page size of a document in inches.


setSizeInch

public void setSizeInch(java.awt.Dimension sizeInch)
Sets the page size of a document in inches.

Parameters:
sizeInch - page size of a document in inches.

setSizeInch

public void setSizeInch(double widthInch,
                        double heightInch)
Sets the page size of a document in inches.

Parameters:
widthInch - width of a document page in inches.
heightInch - height of a document page in inches.

getSizePt

public java.awt.Dimension getSizePt()
Gets the page size of a document in points.


setSizePt

public void setSizePt(java.awt.Dimension sizePt)
Sets the page size of a document in points.

Parameters:
sizePt - page size of a document in points.

setSizePt

public void setSizePt(double widthPt,
                      double heightPt)
Sets the page size of a document in points.

Parameters:
widthPt - width of a document page in points.
heightPt - height of a document page in points.