public class SheetPaper extends AbstractPaper
Paper.TypeFactoryProperties.ComparatorBuilder| Modifier and Type | Field and Description |
|---|---|
protected Length |
pageHeight |
protected Length |
pageWidth |
| Constructor and Description |
|---|
SheetPaper(String name,
String desc,
String identifier,
Length pageWidth,
Length pageHeight)
Creates a new cut-sheet paper.
|
| Modifier and Type | Method and Description |
|---|---|
SheetPaper |
asSheetPaper()
Returns this Paper as a SheetPaper
|
Length |
getPageHeight()
Gets the height of the paper in default orientation
|
Length |
getPageWidth()
Gets the width of the paper in the default orientation
|
Paper.Type |
getType()
Gets the type of paper
|
String |
toString() |
asRollPaper, asTractorPaper, getDescription, getDisplayName, getIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewComparatorBuilderprotected final Length pageWidth
protected final Length pageHeight
public SheetPaper(String name, String desc, String identifier, Length pageWidth, Length pageHeight)
name - a namedesc - a descriptionidentifier - an identifierpageWidth - the width of the paper in the default orientationpageHeight - the height of the paper in the default orientationpublic Paper.Type getType()
Paperpublic Length getPageWidth()
public Length getPageHeight()
public SheetPaper asSheetPaper()
PaperasSheetPaper in interface PaperasSheetPaper in class AbstractPaper