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 Length
pageHeight
protected Length
pageWidth
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SheetPaper
asSheetPaper()
Returns this Paper as a SheetPaperLength
getPageHeight()
Gets the height of the paper in default orientationLength
getPageWidth()
Gets the width of the paper in the default orientationPaper.Type
getType()
Gets the type of paperString
toString()
-
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:Paper
Gets 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:Paper
Returns this Paper as a SheetPaper- Specified by:
asSheetPaper
in interfacePaper
- Overrides:
asSheetPaper
in classAbstractPaper
- Returns:
- returns the SheetPaper
-
-