Module aya.pretty

Class PrinterConfig.Basic<S extends Stylist>

java.lang.Object
org.aya.pretty.printer.PrinterConfig.Basic<S>
All Implemented Interfaces:
PrinterConfig
Direct Known Subclasses:
StringPrinterConfig
Enclosing interface:
PrinterConfig

public static class PrinterConfig.Basic<S extends Stylist> extends Object implements PrinterConfig
Basic configure for other configs to easily extend config flags.
  • Constructor Details

    • Basic

      public Basic(int pageWidth, int pageHeight, @NotNull S stylist)
  • Method Details

    • getStylist

      @NotNull public S getStylist()
      Specified by:
      getStylist in interface PrinterConfig
    • getPageWidth

      public int getPageWidth()
      Description copied from interface: PrinterConfig
      The character count that a line can hold.
      Specified by:
      getPageWidth in interface PrinterConfig
      Returns:
      page width or -1 for infinity page width.
    • getPageHeight

      public int getPageHeight()
      Description copied from interface: PrinterConfig
      The line count that a page can hold.
      Specified by:
      getPageHeight in interface PrinterConfig
      Returns:
      page height or -1 for infinity page height.