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 TractorPaperFormatasTractorPaperFormat()Returns this PageFormat as a TractorPaperFormatLengthgetLengthAcrossFeed()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.PageFormat.TypegetPageFormatType()Gets the paper in this paper formatStringtoString()-
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:PageFormatGets the paper in this paper format- Returns:
- returns the type
-
asTractorPaperFormat
public TractorPaperFormat asTractorPaperFormat()
Description copied from interface:PageFormatReturns this PageFormat as a TractorPaperFormat- Specified by:
asTractorPaperFormatin interfacePageFormat- Overrides:
asTractorPaperFormatin classAbstractPageFormat- Returns:
- returns the TractorPaperFormat
-
-