Package org.daisy.paper
Interface Paper
-
- All Known Implementing Classes:
AbstractPaper
,RollPaper
,SheetPaper
,TractorPaper
public interface Paper extends Factory
Provides an interface for a physical paper media.- Author:
- Joel HÃ¥kansson
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Paper.Type
Defines paper types.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RollPaper
asRollPaper()
Returns this Paper as a RollPaperSheetPaper
asSheetPaper()
Returns this Paper as a SheetPaperTractorPaper
asTractorPaper()
Returns this Paper as a TractorPaperPaper.Type
getType()
Gets the type of paper-
Methods inherited from interface org.daisy.factory.Factory
getDescription, getDisplayName, getFeature, getIdentifier, getProperty, setFeature
-
-
-
-
Method Detail
-
getType
Paper.Type getType()
Gets the type of paper- Returns:
- returns the type of paper
-
asSheetPaper
SheetPaper asSheetPaper()
Returns this Paper as a SheetPaper- Returns:
- returns the SheetPaper
- Throws:
java.lang.ClassCastException
- if the instance is not SheetPaper
-
asTractorPaper
TractorPaper asTractorPaper()
Returns this Paper as a TractorPaper- Returns:
- returns the TractorPaper
- Throws:
java.lang.ClassCastException
- if the instance is not TractorPaper
-
asRollPaper
RollPaper asRollPaper()
Returns this Paper as a RollPaper- Returns:
- returns the RollPaper
- Throws:
java.lang.ClassCastException
- if the instance is not RollPaper
-
-