org.pdfsam.guiclient.utils.paper
Class PaperFormat
java.lang.Object
org.pdfsam.guiclient.utils.paper.PaperFormat
- All Implemented Interfaces:
- java.io.Serializable
public class PaperFormat
- extends java.lang.Object
- implements java.io.Serializable
Models a paper format
- Author:
- Andrea Vacondio
- See Also:
- Serialized Form
|
Constructor Summary |
PaperFormat()
|
PaperFormat(double width,
double height,
java.lang.String description,
double horizontalTolerance,
double verticalTolerance)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PaperFormat
public PaperFormat()
PaperFormat
public PaperFormat(double width,
double height,
java.lang.String description,
double horizontalTolerance,
double verticalTolerance)
- Parameters:
width - height - description - horizontalTolerance - verticalTolerance -
getWidth
public double getWidth()
- Returns:
- the width
setWidth
public void setWidth(double width)
- Parameters:
width - the width to set
getHeight
public double getHeight()
- Returns:
- the height
setHeight
public void setHeight(double height)
- Parameters:
height - the height to set
getDescription
public java.lang.String getDescription()
- Returns:
- the description
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description - the description to set
getHorizontalTolerance
public double getHorizontalTolerance()
- Returns:
- the horizontalTolerance
setHorizontalTolerance
public void setHorizontalTolerance(double horizontalTolerance)
- Parameters:
horizontalTolerance - the horizontalTolerance to set
getVerticalTolerance
public double getVerticalTolerance()
- Returns:
- the verticalTolerance
setVerticalTolerance
public void setVerticalTolerance(double verticalTolerance)
- Parameters:
verticalTolerance - the verticalTolerance to set
isTolerable
public boolean isTolerable(PaperFormat obj)
- Parameters:
obj -
- Returns:
- true if the input object is tolerated by this format
toString
public java.lang.String toString()
- Constructs a
String with all attributes
in name = value format.
- Overrides:
toString in class java.lang.Object
- Returns:
- a
String representation
of this object.