Class SheetPaper

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

    public class SheetPaper
    extends AbstractPaper
    Provides a paper object for cut-sheet paper.
    Author:
    Joel HÃ¥kansson
    See Also:
    Serialized Form
    • Field Detail

      • pageWidth

        protected final Length pageWidth
      • pageHeight

        protected final Length pageHeight
    • Constructor Detail

      • SheetPaper

        public SheetPaper​(java.lang.String name,
                          java.lang.String desc,
                          java.lang.Enum<? extends java.lang.Enum<?>> identifier,
                          Length pageWidth,
                          Length pageHeight)
        Creates a new cut-sheet paper.
        Parameters:
        name - a name
        desc - a description
        identifier - an identifier
        pageWidth - the width of the paper in the default orientation
        pageHeight - the height of the paper in the default orientation
    • Method Detail

      • getType

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

        public Length getPageWidth()
        Gets the width of the paper in the default orientation
        Returns:
        returns the width
      • getPageHeight

        public Length getPageHeight()
        Gets the height of the paper in default orientation
        Returns:
        returns the height