com.teamdev.jxbrowser.printing
Class PageDimension

java.lang.Object
  extended by java.awt.geom.Dimension2D
      extended by com.teamdev.jxbrowser.printing.PageDimension
All Implemented Interfaces:
java.lang.Cloneable

public class PageDimension
extends java.awt.geom.Dimension2D

PageDimension object encapsulates page width and height.


Constructor Summary
PageDimension(double width, double height)
          Constructs the PageDimension object
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 double getHeight()
          Return page heigth
 double getWidth()
          Returns page width
 int hashCode()
           
 void setSize(double width, double height)
           
 
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageDimension

public PageDimension(double width,
                     double height)
Constructs the PageDimension object

Parameters:
width - the paper width
height - the paper height
Method Detail

getWidth

public double getWidth()
Returns page width

Specified by:
getWidth in class java.awt.geom.Dimension2D

getHeight

public double getHeight()
Return page heigth

Specified by:
getHeight in class java.awt.geom.Dimension2D

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

setSize

public void setSize(double width,
                    double height)
Specified by:
setSize in class java.awt.geom.Dimension2D