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