Package org.daisy.paper
Class TractorPaperFormat
java.lang.Object
org.daisy.paper.AbstractPageFormat
org.daisy.paper.TractorPaperFormat
- All Implemented Interfaces:
PageFormat
Provides a paper format for tractor paper.
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.daisy.paper.PageFormat
PageFormat.Type
-
Constructor Summary
ConstructorDescriptionTractorPaperFormat
(Length acrossPaperFeed, Length alongPaperFeed) Creates a new tractor paper format.TractorPaperFormat
(TractorPaper paper) Creates a new tractor paper format. -
Method Summary
Modifier and TypeMethodDescriptionReturns this PageFormat as a TractorPaperFormatGets the length of the paper perpendicular to the direction of the paper feed.Gets the length of the paper along the direction of the paper feed.Gets the paper in this paper formattoString()
Methods inherited from class org.daisy.paper.AbstractPageFormat
asRollPaperFormat, asSheetPaperFormat
-
Constructor Details
-
TractorPaperFormat
Creates a new tractor paper format.- Parameters:
paper
- the paper to use
-
TractorPaperFormat
Creates a new tractor paper format.- Parameters:
acrossPaperFeed
- the width of the paperalongPaperFeed
- the height of the paper
-
-
Method Details
-
getLengthAcrossFeed
Gets the length of the paper perpendicular to the direction of the paper feed.- Returns:
- returns the length.
-
getLengthAlongFeed
Gets the length of the paper along the direction of the paper feed.- Returns:
- returns the length.
-
getPageFormatType
Description copied from interface:PageFormat
Gets the paper in this paper format- Returns:
- returns the type
-
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
-
toString
-