public class TractorPaper extends AbstractPaper
Paper.Type
Constructor | Description |
---|---|
TractorPaper(java.lang.String name,
java.lang.String desc,
java.lang.Enum<? extends java.lang.Enum<?>> identifier,
Length across,
Length along) |
Creates a new tractor paper
|
Modifier and Type | Method | Description |
---|---|---|
TractorPaper |
asTractorPaper() |
Returns this Paper as a TractorPaper
|
Length |
getLengthAcrossFeed() |
Gets the length of the paper perpendicular to the direction of the paper feed
|
Length |
getLengthAlongFeed() |
Gets the length of the paper along the direction of the paper feed
|
Paper.Type |
getType() |
Gets the type of paper
|
java.lang.String |
toString() |
compareTo, getDescription, getDisplayName, getIdentifier
asRollPaper, asSheetPaper, getFeature, getProperty, setFeature
getDescription, getDisplayName, getIdentifier
public TractorPaper(java.lang.String name, java.lang.String desc, java.lang.Enum<? extends java.lang.Enum<?>> identifier, Length across, Length along)
name
- a namedesc
- a descriptionidentifier
- an identifieracross
- the width of the paperalong
- the height of the paperpublic Length getLengthAcrossFeed()
public Length getLengthAlongFeed()
public Paper.Type getType()
Paper
public TractorPaper asTractorPaper()
Paper
asTractorPaper
in interface Paper
asTractorPaper
in class AbstractPaper
public java.lang.String toString()
toString
in class AbstractFactory