Package org.daisy.dotify.api.paper
Interface PageFormat
-
- All Known Implementing Classes:
AbstractPageFormat
,RollPaperFormat
,SheetPaperFormat
,TractorPaperFormat
public interface PageFormat
PageFormat extends a Paper with options selected by a user (if applicable).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PageFormat.Type
Defines page format types
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RollPaperFormat
asRollPaperFormat()
Returns this PageFormat as a RollPaperFormatSheetPaperFormat
asSheetPaperFormat()
Returns this PageFormat as a SheetPaperFormatTractorPaperFormat
asTractorPaperFormat()
Returns this PageFormat as a TractorPaperFormatPageFormat.Type
getPageFormatType()
Gets the paper in this paper format
-
-
-
Method Detail
-
getPageFormatType
PageFormat.Type getPageFormatType()
Gets the paper in this paper format- Returns:
- returns the type
-
asSheetPaperFormat
SheetPaperFormat asSheetPaperFormat()
Returns this PageFormat as a SheetPaperFormat- Returns:
- returns the SheetPaperFormat
- Throws:
ClassCastException
- if the instance is not SheetPaperFormat
-
asTractorPaperFormat
TractorPaperFormat asTractorPaperFormat()
Returns this PageFormat as a TractorPaperFormat- Returns:
- returns the TractorPaperFormat
- Throws:
ClassCastException
- if the instance is not TractorPaperFormat
-
asRollPaperFormat
RollPaperFormat asRollPaperFormat()
Returns this PageFormat as a RollPaperFormat- Returns:
- returns the RollPaperFormat
- Throws:
ClassCastException
- if the instance is not RollPaperFormat
-
-