Package org.daisy.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).
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns this PageFormat as a RollPaperFormatReturns this PageFormat as a SheetPaperFormatReturns this PageFormat as a TractorPaperFormatGets the paper in this paper format
-
Method Details
-
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
-