Class RollPaper

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

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

      • RollPaper

        public RollPaper​(java.lang.String name,
                         java.lang.String desc,
                         java.lang.Enum<? extends java.lang.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 Detail

      • 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