Class TractorPaper

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Factory>, Factory, Paper

    public class TractorPaper
    extends AbstractPaper
    Provides a paper object for perforated paper with paper guides.
    Author:
    Joel HÃ¥kansson
    See Also:
    Serialized Form
    • Constructor Detail

      • TractorPaper

        public TractorPaper​(java.lang.String name,
                            java.lang.String desc,
                            java.lang.Enum<? extends java.lang.Enum<?>> identifier,
                            Length across,
                            Length along)
        Creates a new tractor paper
        Parameters:
        name - a name
        desc - a description
        identifier - an identifier
        across - the width of the paper
        along - 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.
      • getType

        public Paper.Type getType()
        Description copied from interface: Paper
        Gets the type of paper
        Returns:
        returns the type of paper