Class TractorPaperFormat

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

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

    • TractorPaperFormat

      public TractorPaperFormat(TractorPaper paper)
      Creates a new tractor paper format.
      Parameters:
      paper - the paper to use
    • TractorPaperFormat

      public TractorPaperFormat(Length acrossPaperFeed, Length alongPaperFeed)
      Creates a new tractor paper format.
      Parameters:
      acrossPaperFeed - the width of the paper
      alongPaperFeed - the height of the paper
  • 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
    • asTractorPaperFormat

      public TractorPaperFormat asTractorPaperFormat()
      Description copied from interface: PageFormat
      Returns this PageFormat as a TractorPaperFormat
      Specified by:
      asTractorPaperFormat in interface PageFormat
      Overrides:
      asTractorPaperFormat in class AbstractPageFormat
      Returns:
      returns the TractorPaperFormat
    • toString

      public String toString()
      Overrides:
      toString in class Object