Package org.daisy.dotify.api.paper
Class AbstractPageFormat
- java.lang.Object
-
- org.daisy.dotify.api.paper.AbstractPageFormat
-
- All Implemented Interfaces:
PageFormat
- Direct Known Subclasses:
RollPaperFormat
,SheetPaperFormat
,TractorPaperFormat
public abstract class AbstractPageFormat extends Object implements PageFormat
Provides an abstract page format.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.paper.PageFormat
PageFormat.Type
-
-
Constructor Summary
Constructors Constructor Description AbstractPageFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RollPaperFormat
asRollPaperFormat()
Returns this PageFormat as a RollPaperFormat.SheetPaperFormat
asSheetPaperFormat()
Returns this PageFormat as a SheetPaperFormat.TractorPaperFormat
asTractorPaperFormat()
Returns this PageFormat as a TractorPaperFormat.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.daisy.dotify.api.paper.PageFormat
getPageFormatType
-
-
-
-
Method Detail
-
asSheetPaperFormat
public SheetPaperFormat asSheetPaperFormat()
Description copied from interface:PageFormat
Returns this PageFormat as a SheetPaperFormat.- Specified by:
asSheetPaperFormat
in interfacePageFormat
- Returns:
- returns the SheetPaperFormat
-
asTractorPaperFormat
public TractorPaperFormat asTractorPaperFormat()
Description copied from interface:PageFormat
Returns this PageFormat as a TractorPaperFormat.- Specified by:
asTractorPaperFormat
in interfacePageFormat
- Returns:
- returns the TractorPaperFormat
-
asRollPaperFormat
public RollPaperFormat asRollPaperFormat()
Description copied from interface:PageFormat
Returns this PageFormat as a RollPaperFormat.- Specified by:
asRollPaperFormat
in interfacePageFormat
- Returns:
- returns the RollPaperFormat
-
-