public class SheetPaper extends AbstractPaper
Paper.Type
FactoryProperties.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, getIdentifier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
newComparatorBuilder
protected 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()
Paper
public Length getPageWidth()
public Length getPageHeight()
public SheetPaper asSheetPaper()
Paper
asSheetPaper
in interface Paper
asSheetPaper
in class AbstractPaper