Class TractorPaperFormat

  • All Implemented Interfaces:
    PageFormat

    public class TractorPaperFormat
    extends AbstractPageFormat
    Provides a paper format for tractor paper.
    • Constructor Detail

      • 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 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: PageFormat
        Gets the paper in this paper format.
        Returns:
        returns the type