public class SheetPaperFormat extends AbstractPageFormat
Modifier and Type | Class and Description |
---|---|
static class |
SheetPaperFormat.Orientation
The width/height orientation of the page
|
PageFormat.Type
Constructor and Description |
---|
SheetPaperFormat(Length pageWidth,
Length pageHeight)
Creates a new cut-sheet paper.
|
SheetPaperFormat(Length pageWidth,
Length pageHeight,
SheetPaperFormat.Orientation orientation)
Creates a new cut-sheet paper.
|
SheetPaperFormat(SheetPaper paper,
SheetPaperFormat.Orientation orientation)
Creates a new cut-sheet paper.
|
Modifier and Type | Method and Description |
---|---|
SheetPaperFormat |
asSheetPaperFormat()
Returns this PageFormat as a SheetPaperFormat
|
SheetPaperFormat.Orientation |
getOrientation()
Gets the orientation of this paper format.
|
PageFormat.Type |
getPageFormatType()
Gets the paper in this paper format
|
Length |
getPageHeight()
Gets the page height with respect to the orientation of the paper format
|
Length |
getPageWidth()
Gets the page width with respect to the orientation of the paper format
|
String |
toString() |
asRollPaperFormat, asTractorPaperFormat
public SheetPaperFormat(SheetPaper paper, SheetPaperFormat.Orientation orientation)
paper
- the paper to useorientation
- the orientation of the paperpublic SheetPaperFormat(Length pageWidth, Length pageHeight)
pageWidth
- the paper width in the default orientationpageHeight
- the paper height in the default orientationpublic SheetPaperFormat(Length pageWidth, Length pageHeight, SheetPaperFormat.Orientation orientation)
pageWidth
- the paper width in the default orientationpageHeight
- the paper height in the default orientationorientation
- the orientationpublic SheetPaperFormat.Orientation getOrientation()
public Length getPageWidth()
public Length getPageHeight()
public PageFormat.Type getPageFormatType()
PageFormat
public SheetPaperFormat asSheetPaperFormat()
PageFormat
asSheetPaperFormat
in interface PageFormat
asSheetPaperFormat
in class AbstractPageFormat