Module aya.pretty

Interface PrinterConfig

All Known Implementing Classes:
DocHtmlPrinter.Config, DocMdPrinter.Config, DocTermPrinter.Config, DocTeXPrinter.Config, PrinterConfig.Basic, StringPrinterConfig

public interface PrinterConfig
This class was designed to support various PrettyPrint backend. Example usage:
   public class HtmlPrinterConfig implements PrinterConfig {}
 

For a more practical example, see StringPrinterConfig

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Basic configure for other configs to easily extend config flags.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Indicate that the width or height has infinite size.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    The line count that a page can hold.
    default int
    The character count that a line can hold.
    @NotNull Stylist
     
  • Field Details

    • INFINITE_SIZE

      static final int INFINITE_SIZE
      Indicate that the width or height has infinite size.
      See Also:
  • Method Details

    • getPageWidth

      default int getPageWidth()
      The character count that a line can hold.
      Returns:
      page width or -1 for infinity page width.
    • getPageHeight

      default int getPageHeight()
      The line count that a page can hold.
      Returns:
      page height or -1 for infinity page height.
    • getStylist

      @NotNull @NotNull Stylist getStylist()