Interface PageFormat

All Known Implementing Classes:
AbstractPageFormat, RollPaperFormat, SheetPaperFormat, TractorPaperFormat

public interface PageFormat
PageFormat extends a Paper with options selected by a user (if applicable).
Author:
Joel HÃ¥kansson
  • Method Details

    • 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