Package org.daisy.dotify.api.paper
Class RollPaperFormat
- java.lang.Object
-
- org.daisy.dotify.api.paper.AbstractPageFormat
-
- org.daisy.dotify.api.paper.RollPaperFormat
-
- All Implemented Interfaces:
PageFormat
public class RollPaperFormat extends AbstractPageFormat
Provides a paper format for paper in rolls.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.paper.PageFormat
PageFormat.Type
-
-
Constructor Summary
Constructors Constructor Description RollPaperFormat(Length acrossPaperFeed, Length alongPaperFeed)
Creates a new roll paper format.RollPaperFormat(RollPaper paper, Length length)
Creates a new roll paper format.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RollPaperFormat
asRollPaperFormat()
Returns this PageFormat as a RollPaperFormat.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.PageFormat.Type
getPageFormatType()
Gets the paper in this paper format.String
toString()
-
Methods inherited from class org.daisy.dotify.api.paper.AbstractPageFormat
asSheetPaperFormat, asTractorPaperFormat
-
-
-
-
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.
-
getPageFormatType
public PageFormat.Type getPageFormatType()
Description copied from interface:PageFormat
Gets the paper in this paper format.- Returns:
- returns the type
-
asRollPaperFormat
public RollPaperFormat asRollPaperFormat()
Description copied from interface:PageFormat
Returns this PageFormat as a RollPaperFormat.- Specified by:
asRollPaperFormat
in interfacePageFormat
- Overrides:
asRollPaperFormat
in classAbstractPageFormat
- Returns:
- returns the RollPaperFormat
-
-