Package org.daisy.paper
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 org.daisy.paper.Paper
Paper.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.daisy.paper.AbstractPaper
asRollPaper, asTractorPaper, getFeature, getProperty, setFeatureMethods inherited from class org.daisy.factory.AbstractFactory
compareTo, getDescription, getDisplayName, getIdentifierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.daisy.factory.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
Description copied from interface:PaperGets the type of paper- Returns:
- returns the type of paper
-
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
-