Package org.daisy.dotify.api.paper
Class SheetPaper
- java.lang.Object
-
- org.daisy.dotify.api.paper.AbstractPaper
-
- org.daisy.dotify.api.paper.SheetPaper
-
- All Implemented Interfaces:
Serializable,FactoryProperties,Paper
public class SheetPaper extends AbstractPaper
Provides a paper object for cut-sheet paper.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.factory.FactoryProperties
FactoryProperties.ComparatorBuilder
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.paper.Paper
Paper.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected LengthpageHeightprotected LengthpageWidth
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SheetPaperasSheetPaper()Returns this Paper as a SheetPaperLengthgetPageHeight()Gets the height of the paper in default orientationLengthgetPageWidth()Gets the width of the paper in the default orientationPaper.TypegetType()Gets the type of paperStringtoString()-
Methods inherited from class org.daisy.dotify.api.paper.AbstractPaper
asRollPaper, asTractorPaper, getDescription, getDisplayName, getIdentifier
-
-
-
-
Constructor Detail
-
SheetPaper
public SheetPaper(String name, String desc, String 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 Detail
-
getType
public Paper.Type getType()
Description copied from interface:PaperGets the type of paper- Returns:
- returns the type of paper
-
getPageWidth
public Length getPageWidth()
Gets the width of the paper in the default orientation- Returns:
- returns the width
-
getPageHeight
public Length getPageHeight()
Gets the height of the paper in default orientation- Returns:
- returns the height
-
asSheetPaper
public SheetPaper asSheetPaper()
Description copied from interface:PaperReturns this Paper as a SheetPaper- Specified by:
asSheetPaperin interfacePaper- Overrides:
asSheetPaperin classAbstractPaper- Returns:
- returns the SheetPaper
-
-