org.pdfsam.guiclient.utils.paper
Class PaperFormat

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.lang.String getDescription()
           
 double getHeight()
           
 double getHorizontalTolerance()
           
 double getVerticalTolerance()
           
 double getWidth()
           
 boolean isTolerable(PaperFormat obj)
           
 void setDescription(java.lang.String description)
           
 void setHeight(double height)
           
 void setHorizontalTolerance(double horizontalTolerance)
           
 void setVerticalTolerance(double verticalTolerance)
           
 void setWidth(double width)
           
 java.lang.String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PaperFormat

public PaperFormat()

PaperFormat

public PaperFormat(double width,
                   double height,
                   java.lang.String description,
                   double horizontalTolerance,
                   double verticalTolerance)
Parameters:
width -
height -
description -
horizontalTolerance -
verticalTolerance -
Method Detail

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.