public class ConsoleController
extends java.lang.Object
Constructor and Description |
---|
ConsoleController(Model model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTextToConsole(java.lang.String text)
Print Text on the console in black and font size 12.
|
void |
addTextToConsole(java.lang.String text,
java.awt.Color color,
int p,
boolean bold,
boolean italic,
boolean nl)
Print Text on the console.
|
void |
clearConsole()
Clears the console.
|
public ConsoleController(Model model)
model
- the Modelpublic void addTextToConsole(java.lang.String text, java.awt.Color color, int p, boolean bold, boolean italic, boolean nl)
text
- String the Textcolor
- the color of the Textp
- size of the Textbold
- bold or notitalic
- italic or notnl
- new line or notpublic void addTextToConsole(java.lang.String text)
text
- String the Textpublic void clearConsole()