Class Printer

java.lang.Object
org.strassburger.tui4j.formatting.Printer

public class Printer extends Object
Deprecated.
Use ConsolePrinter instead
A class to format and print text to the console
  • Constructor Details

    • Printer

      public Printer()
      Deprecated.
  • Method Details

    • print

      public static void print(String text)
      Deprecated.
      Print text to the console
      Parameters:
      text - the text to print
    • println

      public static void println(String text)
      Deprecated.
      Print text to the console with a newline
      Parameters:
      text - the text to print
    • printf

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

      public static void printfln(String format, Object... args)
      Deprecated.
      Format and print text to the console with a newline
      Parameters:
      format - the format string
      args - the arguments to format
    • printCentered

      public static void printCentered(String text)
      Deprecated.
      Print text to the console centered
      Parameters:
      text - the text to print
    • printSpaceBetween

      public static void printSpaceBetween(String leftText, String rightText)
      Deprecated.
      Print text to the console with a space between
      Parameters:
      leftText - the text to print on the left
      rightText - the text to print on the right
    • printSpaceBetween

      public static void printSpaceBetween(String leftText, String rightText, String spaceChar)
      Deprecated.
      Print text to the console with a space between
      Parameters:
      leftText - the text to print on the left
      rightText - the text to print on the right
      spaceChar - the character to use for the space