Class RollPaperFormat

  • All Implemented Interfaces:
    PageFormat

    public class RollPaperFormat
    extends AbstractPageFormat
    Provides a paper format for paper in rolls.
    • Constructor Detail

      • 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 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