Class PrintPage

    • Constructor Detail

      • PrintPage

        public PrintPage​(PageFormat inputPage)
        Creates a new print page with the specified page format and default print direction and print mode.
        Parameters:
        inputPage - the page format
    • 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.
      • getWidth

        public double getWidth()
        Description copied from interface: Dimensions
        Gets width, in mm.
        Specified by:
        getWidth in interface Dimensions
        Returns:
        returns width in mm.
      • getHeight

        public double getHeight()
        Description copied from interface: Dimensions
        Gets height, in mm.
        Specified by:
        getHeight in interface Dimensions
        Returns:
        returns height in mm.
      • getShape

        public PrintPage.Shape getShape()
        Gets the shape of the print page.
        Returns:
        returns the shape