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
-
Constructor Summary
-
Method Summary
Methods inherited from class org.daisy.paper.AbstractPaper
asRollPaper, asTractorPaper, getFeature, getProperty, setFeature
Methods inherited from class org.daisy.factory.AbstractFactory
compareTo, getDescription, getDisplayName, getIdentifier
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods 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:Paper
Gets 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:Paper
Returns this Paper as a SheetPaper- Specified by:
asSheetPaper
in interfacePaper
- Overrides:
asSheetPaper
in classAbstractPaper
- Returns:
- returns the SheetPaper
-
toString
- Overrides:
toString
in classAbstractFactory
-