public class TractorPaperFormat extends AbstractPageFormat
PageFormat.Type
Constructor and Description |
---|
TractorPaperFormat(Length acrossPaperFeed,
Length alongPaperFeed)
Creates a new tractor paper format.
|
TractorPaperFormat(TractorPaper paper)
Creates a new tractor paper format.
|
Modifier and Type | Method and Description |
---|---|
TractorPaperFormat |
asTractorPaperFormat()
Returns this PageFormat as a TractorPaperFormat
|
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.
|
PageFormat.Type |
getPageFormatType()
Gets the paper in this paper format
|
String |
toString() |
asRollPaperFormat, asSheetPaperFormat
public TractorPaperFormat(TractorPaper paper)
paper
- the paper to usepublic Length getLengthAcrossFeed()
public Length getLengthAlongFeed()
public PageFormat.Type getPageFormatType()
PageFormat
public TractorPaperFormat asTractorPaperFormat()
PageFormat
asTractorPaperFormat
in interface PageFormat
asTractorPaperFormat
in class AbstractPageFormat