RollPaper, SheetPaper, TractorPaperpublic abstract class AbstractPaper extends AbstractFactory implements Paper
Paper.Type| Constructor | Description |
|---|---|
AbstractPaper(java.lang.String name,
java.lang.String desc,
java.lang.Enum<? extends java.lang.Enum<?>> identifier) |
Creates a new paper.
|
AbstractPaper(java.lang.String name,
java.lang.String desc,
java.lang.String identifier) |
Creates a new paper.
|
| Modifier and Type | Method | 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
|
java.lang.Object |
getFeature(java.lang.String key) |
Gets the value of a feature used by this Factory
|
java.lang.Object |
getProperty(java.lang.String key) |
Gets the value of a read-only property that applies to all objects returned
by this Factory.
|
void |
setFeature(java.lang.String key,
java.lang.Object value) |
Sets a feature for new Objects returned by this Factory
|
compareTo, getDescription, getDisplayName, getIdentifier, toStringgetDescription, getDisplayName, getIdentifierpublic AbstractPaper(java.lang.String name,
java.lang.String desc,
java.lang.Enum<? extends java.lang.Enum<?>> identifier)
name - the name of the paperdesc - the description of the paperidentifier - the identifierpublic AbstractPaper(java.lang.String name,
java.lang.String desc,
java.lang.String identifier)
name - the name of the paperdesc - the description of the paperidentifier - the identifierpublic java.lang.Object getFeature(java.lang.String key)
FactorygetFeature in interface Factorykey - the key for the featurepublic java.lang.Object getProperty(java.lang.String key)
FactorygetProperty in interface Factorykey - the name of the property to getpublic void setFeature(java.lang.String key,
java.lang.Object value)
FactorysetFeature in interface Factorykey - the key for the featurevalue - the value of the featurepublic SheetPaper asSheetPaper()
PaperasSheetPaper in interface Paperpublic TractorPaper asTractorPaper()
PaperasTractorPaper in interface Paperpublic RollPaper asRollPaper()
PaperasRollPaper in interface Paper