public class RollPaper extends AbstractPaper
Paper.Type
Constructor and Description |
---|
RollPaper(java.lang.String name,
java.lang.String desc,
java.lang.Enum<? extends java.lang.Enum<?>> identifier,
Length across)
Creates a new roll paper
|
Modifier and Type | Method and Description |
---|---|
RollPaper |
asRollPaper()
Returns this Paper as a RollPaper
|
Length |
getLengthAcrossFeed()
Gets the length of the paper perpendicular to the direction of the paper feed
|
Paper.Type |
getType()
Gets the type of paper
|
java.lang.String |
toString() |
asSheetPaper, asTractorPaper, getFeature, getProperty, setFeature
compareTo, getDescription, getDisplayName, getIdentifier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getDisplayName, getIdentifier
public RollPaper(java.lang.String name, java.lang.String desc, java.lang.Enum<? extends java.lang.Enum<?>> identifier, Length across)
name
- a name for the paperdesc
- a descriptionidentifier
- an identifieracross
- the height of the rollpublic Length getLengthAcrossFeed()
public Paper.Type getType()
Paper
public RollPaper asRollPaper()
Paper
asRollPaper
in interface Paper
asRollPaper
in class AbstractPaper
public java.lang.String toString()
toString
in class AbstractFactory