Class PrintElement

java.lang.Object
nl.saxion.app.console.PrintElement

public class PrintElement extends Object
`print` and `printLine` statements create a different type of element, a `PrintElement`. They are stored in the `printElements` list.
  • Constructor Details

    • PrintElement

      public PrintElement(String text, Color color, boolean newLine)
      Constructor to set the values of the print element.
      Parameters:
      text - sets the text attribute
      color - sets the color attribute
      newLine - sets the newLine boolean attribute
  • Method Details

    • getText

      public String getText()
    • getColor

      public Color getColor()
    • isNewLine

      public boolean isNewLine()
    • setNewLine

      public void setNewLine(boolean newLine)
    • toString

      public String toString()
      Overrides:
      toString in class Object