Package org.daisy.dotify.api.embosser
Class PrintPage
- java.lang.Object
-
- org.daisy.dotify.api.embosser.PrintPage
-
- All Implemented Interfaces:
Dimensions
public class PrintPage extends Object implements Dimensions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrintPage.PrintDirection
Direction of print.static class
PrintPage.Shape
The shape of the paper.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
PrintPage
public PrintPage(PageFormat inputPage, PrintPage.PrintDirection direction, EmbosserProperties.PrintMode mode)
Creates a new print page with the specified parameters.- Parameters:
inputPage
- the page formatdirection
- the print directionmode
- the print mode
-
PrintPage
public PrintPage(PageFormat inputPage)
Creates a new print page with the specified page format and default print direction and print mode.- Parameters:
inputPage
- the page format
-
-
Method Detail
-
getLengthAcrossFeed
public Length getLengthAcrossFeed()
Gets the length of the paper perpendicular to the direction of the paper feed.- Returns:
- returns the length.
-
getLengthAlongFeed
public Length getLengthAlongFeed()
Gets the length of the paper along the direction of the paper feed.- Returns:
- returns the length.
-
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()
Gets the shape of the print page.- Returns:
- returns the shape
-
-