接口 PrinterConfig

所有已知实现类:
DocHtmlPrinter.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

  • 嵌套类概要

    嵌套类
    修饰符和类型
    接口
    说明
    static class 
    Basic configure for other configs to easily extend config flags.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
    Indicate that the width or height has infinite size.
  • 方法概要

    修饰符和类型
    方法
    说明
    default int
    The line count that a page can hold.
    default int
    The character count that a line can hold.
    default @NotNull Stylist
     
  • 字段详细资料

    • INFINITE_SIZE

      static final int INFINITE_SIZE
      Indicate that the width or height has infinite size.
      另请参阅:
  • 方法详细资料

    • getPageWidth

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

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

      @NotNull default @NotNull Stylist getStyleFormatter()