Class TractorPaper

All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

    • TractorPaper

      public TractorPaper(String name, String desc, Enum<? extends 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 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.
    • getType

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

      public TractorPaper asTractorPaper()
      Description copied from interface: Paper
      Returns this Paper as a TractorPaper
      Specified by:
      asTractorPaper in interface Paper
      Overrides:
      asTractorPaper in class AbstractPaper
      Returns:
      returns the TractorPaper
    • toString

      public String toString()
      Overrides:
      toString in class AbstractFactory