com.teamdev.jxbrowser.printing
Class PageDimension
java.lang.Object
java.awt.geom.Dimension2D
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 |
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 |
PageDimension
public PageDimension(double width,
double height)
- Constructs the PageDimension object
- Parameters:
width
- the paper widthheight
- the paper height
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