Package org.strassburger.tui4j.printer
Interface Printer
- All Known Implementing Classes:
ConsolePrinter
public interface Printer
An interface for printing text to various outputs
-
Method Summary
Modifier and TypeMethodDescriptionvoidPrint raw text to the outputvoidprint(Renderable renderable) Print a renderable object to the outputvoidprint(StyledText text) Print styled text to the outputvoidFormat and print text to the outputvoidprintf(StyledText format, Object... args) Format and print styled text to the outputvoidFormat and print text to the output with a newlinevoidprintfln(StyledText format, Object... args) Format and print styled text to the output with a newlinevoidprintln()Print a newline to the outputvoidPrint raw text to the output with a newlinevoidprintln(Renderable renderable) Print a renderable object to the output with a newlinevoidprintln(StyledText text) Print styled text to the output with a newline
-
Method Details
-
print
Print raw text to the output- Parameters:
text- the text to print
-
print
Print styled text to the output- Parameters:
text- the styled text to print
-
print
Print a renderable object to the output- Parameters:
renderable- the renderable object to print
-
println
void println()Print a newline to the output -
println
Print raw text to the output with a newline- Parameters:
text- the text to print
-
println
Print styled text to the output with a newline- Parameters:
text- the styled text to print
-
println
Print a renderable object to the output with a newline- Parameters:
renderable- the renderable object to print
-
printf
Format and print text to the output- Parameters:
format- the format stringargs- the arguments to format
-
printfln
Format and print text to the output with a newline- Parameters:
format- the format stringargs- the arguments to format
-
printf
Format and print styled text to the output- Parameters:
format- the styled text formatargs- the arguments to format
-
printfln
Format and print styled text to the output with a newline- Parameters:
format- the styled text formatargs- the arguments to format
-