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 classPrintPage.PrintDirectionDirection of print.static classPrintPage.ShapeThe 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 doublegetHeight()Gets height, in mm.LengthgetLengthAcrossFeed()Gets the length of the paper perpendicular to the direction of the paper feed.LengthgetLengthAlongFeed()Gets the length of the paper along the direction of the paper feed.PrintPage.ShapegetShape()Gets the shape of the print page.doublegetWidth()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:DimensionsGets width, in mm.- Specified by:
getWidthin interfaceDimensions- Returns:
- returns width in mm.
-
getHeight
public double getHeight()
Description copied from interface:DimensionsGets height, in mm.- Specified by:
getHeightin interfaceDimensions- Returns:
- returns height in mm.
-
getShape
public PrintPage.Shape getShape()
Gets the shape of the print page.- Returns:
- returns the shape
-
-