public class PrintPage extends Object implements Dimensions
| Modifier and Type | Class and Description |
|---|---|
static class |
PrintPage.PrintDirection
Direction of print
|
static class |
PrintPage.Shape
The shape of the paper
|
| Constructor and Description |
|---|
PrintPage(PageFormat inputPage)
Creates a new print page with the specified page format
and default print direction and print mode.
|
PrintPage(PageFormat inputPage,
PrintPage.PrintDirection direction,
EmbosserProperties.PrintMode mode)
Creates a new print page with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight()
Gets height, in mm.
|
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
|
PrintPage.Shape |
getShape()
Gets the shape of the print page.
|
double |
getWidth()
Gets width, in mm.
|
public PrintPage(PageFormat inputPage, PrintPage.PrintDirection direction, EmbosserProperties.PrintMode mode)
inputPage - the page formatdirection - the print directionmode - the print modepublic PrintPage(PageFormat inputPage)
inputPage - the page formatpublic Length getLengthAcrossFeed()
public Length getLengthAlongFeed()
public double getWidth()
DimensionsgetWidth in interface Dimensionspublic double getHeight()
DimensionsgetHeight in interface Dimensionspublic PrintPage.Shape getShape()