public interface Paper extends Factory
Modifier and Type | Interface and Description |
---|---|
static class |
Paper.Type
Defines paper types.
|
Modifier and Type | Method and Description |
---|---|
RollPaper |
asRollPaper()
Returns this Paper as a RollPaper
|
SheetPaper |
asSheetPaper()
Returns this Paper as a SheetPaper
|
TractorPaper |
asTractorPaper()
Returns this Paper as a TractorPaper
|
Paper.Type |
getType()
Gets the type of paper
|
getDescription, getDisplayName, getFeature, getIdentifier, getProperty, setFeature
Paper.Type getType()
SheetPaper asSheetPaper()
java.lang.ClassCastException
- if the instance is not SheetPaperTractorPaper asTractorPaper()
java.lang.ClassCastException
- if the instance is not TractorPaperRollPaper asRollPaper()
java.lang.ClassCastException
- if the instance is not RollPaper