Class RollPaper

All Implemented Interfaces:
Serializable, Comparable<Factory>, Factory, Paper

public class RollPaper extends AbstractPaper
Provides a paper object for paper in rolls.
Author:
Joel HÃ¥kansson
See Also:
  • Constructor Details

    • RollPaper

      public RollPaper(String name, String desc, Enum<? extends Enum<?>> identifier, Length across)
      Creates a new roll paper
      Parameters:
      name - a name for the paper
      desc - a description
      identifier - an identifier
      across - the height of the roll
  • Method Details

    • getLengthAcrossFeed

      public Length getLengthAcrossFeed()
      Gets the length of the paper perpendicular to the direction of the paper feed
      Returns:
      returns the length, in mm.
    • getType

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

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

      public String toString()
      Overrides:
      toString in class AbstractFactory