- All Known Implementing Classes:
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBasic configure for other configs to easily extend config flags. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicate that the width or height has infinite size. -
Method Summary
Modifier and TypeMethodDescriptiondefault intThe line count that a page can hold.default intThe character count that a line can hold.@NotNull Stylist
-
Field Details
-
INFINITE_SIZE
static final int INFINITE_SIZEIndicate 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
-