Interface Printer

All Known Implementing Classes:
ConsolePrinter

public interface Printer
An interface for printing text to various outputs
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    print(String text)
    Print raw text to the output
    void
    print(Renderable renderable)
    Print a renderable object to the output
    void
    Print styled text to the output
    void
    printf(String format, Object... args)
    Format and print text to the output
    void
    printf(StyledText format, Object... args)
    Format and print styled text to the output
    void
    printfln(String format, Object... args)
    Format and print text to the output with a newline
    void
    printfln(StyledText format, Object... args)
    Format and print styled text to the output with a newline
    void
    Print a newline to the output
    void
    Print raw text to the output with a newline
    void
    println(Renderable renderable)
    Print a renderable object to the output with a newline
    void
    Print styled text to the output with a newline
  • Method Details

    • print

      void print(String text)
      Print raw text to the output
      Parameters:
      text - the text to print
    • print

      void print(StyledText text)
      Print styled text to the output
      Parameters:
      text - the styled text to print
    • print

      void print(Renderable renderable)
      Print a renderable object to the output
      Parameters:
      renderable - the renderable object to print
    • println

      void println()
      Print a newline to the output
    • println

      void println(String text)
      Print raw text to the output with a newline
      Parameters:
      text - the text to print
    • println

      void println(StyledText text)
      Print styled text to the output with a newline
      Parameters:
      text - the styled text to print
    • println

      void println(Renderable renderable)
      Print a renderable object to the output with a newline
      Parameters:
      renderable - the renderable object to print
    • printf

      void printf(String format, Object... args)
      Format and print text to the output
      Parameters:
      format - the format string
      args - the arguments to format
    • printfln

      void printfln(String format, Object... args)
      Format and print text to the output with a newline
      Parameters:
      format - the format string
      args - the arguments to format
    • printf

      void printf(StyledText format, Object... args)
      Format and print styled text to the output
      Parameters:
      format - the styled text format
      args - the arguments to format
    • printfln

      void printfln(StyledText format, Object... args)
      Format and print styled text to the output with a newline
      Parameters:
      format - the styled text format
      args - the arguments to format