Class RollPaperFormat

java.lang.Object
org.daisy.paper.AbstractPageFormat
org.daisy.paper.RollPaperFormat
All Implemented Interfaces:
PageFormat

public class RollPaperFormat extends AbstractPageFormat
Provides a paper format for paper in rolls.
Author:
Joel HÃ¥kansson
  • Constructor Details

    • RollPaperFormat

      public RollPaperFormat(RollPaper paper, Length length)
      Creates a new roll paper format
      Parameters:
      paper - the roll paper to use
      length - the cut-length
    • RollPaperFormat

      public RollPaperFormat(Length acrossPaperFeed, Length alongPaperFeed)
      Creates a new roll paper format
      Parameters:
      acrossPaperFeed - the height of the roll
      alongPaperFeed - the cut-length
  • Method Details

    • 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 interface PageFormat
      Overrides:
      asRollPaperFormat in class AbstractPageFormat
      Returns:
      returns the RollPaperFormat
    • toString

      public String toString()
      Overrides:
      toString in class Object