Package org.daisy.paper
Class RollPaperFormat
java.lang.Object
org.daisy.paper.AbstractPageFormat
org.daisy.paper.RollPaperFormat
- All Implemented Interfaces:
PageFormat
Provides a paper format for paper in rolls.
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.daisy.paper.PageFormat
PageFormat.Type
-
Constructor Summary
ConstructorDescriptionRollPaperFormat
(Length acrossPaperFeed, Length alongPaperFeed) Creates a new roll paper formatRollPaperFormat
(RollPaper paper, Length length) Creates a new roll paper format -
Method Summary
Modifier and TypeMethodDescriptionReturns this PageFormat as a RollPaperFormatGets the length of the paper perpendicular to the direction of the paper feedGets the length of the paper along the direction of the paper feedGets the paper in this paper formattoString()
Methods inherited from class org.daisy.paper.AbstractPageFormat
asSheetPaperFormat, asTractorPaperFormat
-
Constructor Details
-
RollPaperFormat
Creates a new roll paper format- Parameters:
paper
- the roll paper to uselength
- the cut-length
-
RollPaperFormat
Creates a new roll paper format- Parameters:
acrossPaperFeed
- the height of the rollalongPaperFeed
- the cut-length
-
-
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
-
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
-
toString
-