public class SheetPaper extends AbstractPaper
Paper.Type| Modifier and Type | Field and Description |
|---|---|
protected Length |
pageHeight |
protected Length |
pageWidth |
| Constructor and Description |
|---|
SheetPaper(java.lang.String name,
java.lang.String desc,
java.lang.Enum<? extends java.lang.Enum<?>> 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
|
java.lang.String |
toString() |
asRollPaper, asTractorPaper, getFeature, getProperty, setFeaturecompareTo, getDescription, getDisplayName, getIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getDisplayName, getIdentifierprotected final Length pageWidth
protected final Length pageHeight
public SheetPaper(java.lang.String name,
java.lang.String desc,
java.lang.Enum<? extends java.lang.Enum<?>> 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 AbstractPaperpublic java.lang.String toString()
toString in class AbstractFactory