Package org.daisy.paper
Class PrintPage
- java.lang.Object
-
- org.daisy.paper.PrintPage
-
- All Implemented Interfaces:
Dimensions
public class PrintPage extends java.lang.Object implements Dimensions
- Author:
- Bert Frees, Joel HÃ¥kansson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrintPage.PrintDirection
Direction of printstatic class
PrintPage.Shape
The shape of the paper
-
Constructor Summary
Constructors Constructor Description PrintPage(PageFormat inputPage)
PrintPage(PageFormat inputPage, PrintPage.PrintDirection direction, EmbosserProperties.PrintMode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
Gets height, in mm.Length
getLengthAcrossFeed()
Length
getLengthAlongFeed()
PrintPage.Shape
getShape()
double
getWidth()
Gets width, in mm.
-
-
-
Constructor Detail
-
PrintPage
public PrintPage(PageFormat inputPage, PrintPage.PrintDirection direction, EmbosserProperties.PrintMode mode)
-
PrintPage
public PrintPage(PageFormat inputPage)
-
-
Method Detail
-
getLengthAcrossFeed
public Length getLengthAcrossFeed()
-
getLengthAlongFeed
public Length getLengthAlongFeed()
-
getWidth
public double getWidth()
Description copied from interface:Dimensions
Gets width, in mm.- Specified by:
getWidth
in interfaceDimensions
- Returns:
- returns width in mm.
-
getHeight
public double getHeight()
Description copied from interface:Dimensions
Gets height, in mm.- Specified by:
getHeight
in interfaceDimensions
- Returns:
- returns height in mm.
-
getShape
public PrintPage.Shape getShape()
-
-