public class RollPaperFormat extends AbstractPageFormat
PageFormat.Type
Constructor and Description |
---|
RollPaperFormat(Length acrossPaperFeed,
Length alongPaperFeed)
Creates a new roll paper format
|
RollPaperFormat(RollPaper paper,
Length length)
Creates a new roll paper format
|
Modifier and Type | Method and Description |
---|---|
RollPaperFormat |
asRollPaperFormat()
Returns this PageFormat as a RollPaperFormat
|
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() |
asSheetPaperFormat, asTractorPaperFormat
public RollPaperFormat(RollPaper paper, Length length)
paper
- the roll paper to uselength
- the cut-lengthpublic Length getLengthAcrossFeed()
public Length getLengthAlongFeed()
public PageFormat.Type getPageFormatType()
PageFormat
public RollPaperFormat asRollPaperFormat()
PageFormat
asRollPaperFormat
in interface PageFormat
asRollPaperFormat
in class AbstractPageFormat