adalogo.gui

Class Console

Implemented Interfaces:
EventListener, VisitorMaster.VisitorListener

public class Console
extends JPanel
implements VisitorMaster.VisitorListener

Nested Class Summary

Constructor Summary

Console(Engine en)

Method Summary

void
append(String message)
put message in console.
void
appendDebug(String message)
put message in console.
void
appendError(String message)
put message in console.
void
appendInternal(String message)
put message in console.
void
appendWithoutNewline(String message)
put message in console without appended newline.
Dimension
getMinimumSize()
Dimension
getPreferredSize()
void
init()
void
visitorRunning(VisitorMaster.VisitorEvent e)
void
visitorStarted(VisitorMaster.VisitorEvent e)
void
visitorStopped(VisitorMaster.VisitorEvent e)
void
visitorWaiting(VisitorMaster.VisitorEvent e)

Constructor Details

Console

public Console(Engine en)

Method Details

append

public void append(String message)
put message in console. a newline is appended to the message. this message will have the default style.


appendDebug

public void appendDebug(String message)
put message in console. this message will have the debug style (currently grey).


appendError

public void appendError(String message)
put message in console. this message will have the error style (currently red).


appendInternal

public void appendInternal(String message)
put message in console. internal messages are messages from gui components, for example error saving/loading file message.


appendWithoutNewline

public void appendWithoutNewline(String message)
put message in console without appended newline.


getMinimumSize

public Dimension getMinimumSize()


getPreferredSize

public Dimension getPreferredSize()


init

public void init()


visitorRunning

public void visitorRunning(VisitorMaster.VisitorEvent e)
Specified by:
visitorRunning in interface VisitorMaster.VisitorListener


visitorStarted

public void visitorStarted(VisitorMaster.VisitorEvent e)
Specified by:
visitorStarted in interface VisitorMaster.VisitorListener


visitorStopped

public void visitorStopped(VisitorMaster.VisitorEvent e)
Specified by:
visitorStopped in interface VisitorMaster.VisitorListener


visitorWaiting

public void visitorWaiting(VisitorMaster.VisitorEvent e)
Specified by:
visitorWaiting in interface VisitorMaster.VisitorListener