Class LogPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class LogPanel extends JPanel
This class is used to create a log panel that the user can input commands into.
See Also:
  • Constructor Details

    • LogPanel

      public LogPanel()
      Constructor for logPanel.
  • Method Details

    • print

      public String print(String s)
      appends String to textArea.
      Parameters:
      s - String to be appended
      Returns:
      the String that was appended
    • println

      public String println(String s)
      appends String to textArea with a new line.
      Parameters:
      s - String to be appended
      Returns:
      the String that was appended
    • clear

      public void clear()
      clears the text area.
    • addCommands

      public void addCommands(String command, String description, Runnable action)
      adds a command to the commands.
      Parameters:
      command - command to be added
      description - description of the command
      action - action to be performed
    • setRenderer

      public void setRenderer(MazeRenderer mazeRenderer)
      sets the mazeRenderer.
      Parameters:
      mazeRenderer - mazeRenderer to be set