Interface PageFormat

    • Method Detail

      • getPageFormatType

        PageFormat.Type getPageFormatType()
        Gets the paper in this paper format.
        Returns:
        returns the type
      • asSheetPaperFormat

        SheetPaperFormat asSheetPaperFormat()
        Returns this PageFormat as a SheetPaperFormat.
        Returns:
        returns the SheetPaperFormat
        Throws:
        ClassCastException - if the instance is not SheetPaperFormat
      • asTractorPaperFormat

        TractorPaperFormat asTractorPaperFormat()
        Returns this PageFormat as a TractorPaperFormat.
        Returns:
        returns the TractorPaperFormat
        Throws:
        ClassCastException - if the instance is not TractorPaperFormat
      • asRollPaperFormat

        RollPaperFormat asRollPaperFormat()
        Returns this PageFormat as a RollPaperFormat.
        Returns:
        returns the RollPaperFormat
        Throws:
        ClassCastException - if the instance is not RollPaperFormat