Class SheetPaper
java.lang.Object
org.daisy.factory.AbstractFactory
org.daisy.paper.AbstractPaper
org.daisy.paper.SheetPaper
- All Implemented Interfaces:
Serializable, Comparable<Factory>, Factory, Paper
Provides a paper object for cut-sheet paper.
- Author:
- Joel HÃ¥kansson
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Paper
Paper.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractPaper
asRollPaper, asTractorPaper, getFeature, getProperty, setFeatureMethods inherited from class AbstractFactory
compareTo, getDescription, getDisplayName, getIdentifierMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Comparable
compareToMethods inherited from interface Factory
getDescription, getDisplayName, getIdentifier
-
Field Details
-
pageWidth
-
pageHeight
-
-
Constructor Details
-
SheetPaper
public SheetPaper(String name, String desc, Enum<? extends Enum<?>> identifier, Length pageWidth, Length pageHeight) Creates a new cut-sheet paper.- Parameters:
name- a namedesc- a descriptionidentifier- an identifierpageWidth- the width of the paper in the default orientationpageHeight- the height of the paper in the default orientation
-
-
Method Details
-
getType
-
getPageWidth
Gets the width of the paper in the default orientation- Returns:
- returns the width
-
getPageHeight
Gets the height of the paper in default orientation- Returns:
- returns the height
-
asSheetPaper
Description copied from interface:PaperReturns this Paper as a SheetPaper- Specified by:
asSheetPaperin interfacePaper- Overrides:
asSheetPaperin classAbstractPaper- Returns:
- returns the SheetPaper
-
toString
- Overrides:
toStringin classAbstractFactory
-