public class GUIUserInterface extends VisualizingUserInterface
UserInterface.NullUserInterface
inputHistory, NONE, printResults, printWarnings, progressSender
Constructor and Description |
---|
GUIUserInterface() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
derivedUserOutput(java.lang.String message) |
OperationThread |
getOperationThread() |
boolean |
hasScriptThread() |
void |
hideProgressOutput(java.lang.Object sender)
Hides the progress output.
|
void |
init(MainControl mainControl)
Initializes this instance.
|
void |
initializeMessage()
Informs the user, that the program is beeing initialized.
|
void |
insertInput(java.lang.String input) |
void |
mainLoop()
Starts the user interaction.
|
void |
removeOperationThread() |
void |
removeScriptThread() |
void |
setOperationThread(OperationThread operationThread) |
void |
setProgress(java.lang.Object sender,
double progress)
Sets the progress output to the given value.
|
void |
setProgressMessage(java.lang.Object sender,
java.lang.String message)
Sets the progress label.
|
void |
setScriptThread(ExecuterThread thread) |
boolean |
showGraphFilesFrame()
Presents the graph files frame to the user.
|
void |
signalUserInput(java.lang.String prefix)
Informs the user, that input can be done.
|
void |
simulateUserInput(java.lang.String input,
boolean print,
boolean execute)
Simulates a user input.
|
void |
startInitialization()
Invokes the initialization of the user interface.
|
void |
startMessage()
Informs the user, that the user interface is beeing started.
|
java.lang.String |
userInput()
Awaits a user input and returns it as a string.
|
algorithmOutputStep, algorithmStartMessage, closeGraphFilesFrame, closeGraphView, derivAlgorithmMessage, derivShowGraph, getArgumentComponentManager, getGraphFileSet, refreshGraphOutput, showGraphFilesFrame, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
algorithmMessage, algorithmOutputStep, algorithmOutputStep, clearProgressMessage, clearProgressMessage, derivedPrintWarning, derivedResultOutput, errorOutput, errorOutput, finishAlgorithmOutput, finishAlgorithmOutput, getAlgoVisualizationHeight, getAlgoVisualizationLayout, getAlgoVisualizationWidth, getInputHistory, getMainControl, getOutputStreamFile, getProgressSender, hideProgressOutput, isAlgorithmVisualizationActive, pause, resultOutput, setAlgorithmOutputActive, setAlgorithmVisualizationParameters, setOutputStreamFile, setPrintResults, setPrintWarnings, setProgress, setProgressMessage, setProgressSender, showGraph, showGraph, showGraph, showGraph, showGraph, startAlgorithmOutput, startProgressOutput, startProgressOutput, userOutput, userOutput, warningOutput, warningOutputFac
public void init(MainControl mainControl)
UserInterface
init
in class VisualizingUserInterface
mainControl
- the main control of the program.public void startInitialization()
UserInterface
startInitialization
in class UserInterface
public boolean showGraphFilesFrame()
showGraphFilesFrame
in class VisualizingUserInterface
public void mainLoop()
UserInterface
mainLoop
in class UserInterface
public void derivedUserOutput(java.lang.String message)
derivedUserOutput
in class UserInterface
public java.lang.String userInput()
UserInterface
userInput
in class UserInterface
public void initializeMessage()
UserInterface
initializeMessage
in class UserInterface
public void startMessage()
UserInterface
startMessage
in class UserInterface
public void signalUserInput(java.lang.String prefix)
UserInterface
signalUserInput
in class UserInterface
prefix
- an additional string for the signal.public void simulateUserInput(java.lang.String input, boolean print, boolean execute)
UserInterface
simulateUserInput
in class UserInterface
input
- the input.print
- if true, then the input will be printed before it will be executed.execute
- if true, then the input will be executed.public void setProgress(java.lang.Object sender, double progress)
UserInterface
setProgress
in class UserInterface
progress
- the progress. Must be between 0 (started) and 1 (finished).public void hideProgressOutput(java.lang.Object sender)
UserInterface
hideProgressOutput
in class UserInterface
public void setProgressMessage(java.lang.Object sender, java.lang.String message)
UserInterface
setProgressMessage
in class UserInterface
sender
- the sender of the messagepublic OperationThread getOperationThread()
getOperationThread
in class UserInterface
public void setOperationThread(OperationThread operationThread)
setOperationThread
in class UserInterface
public void removeOperationThread()
removeOperationThread
in class UserInterface
public void setScriptThread(ExecuterThread thread)
setScriptThread
in class UserInterface
public void removeScriptThread()
removeScriptThread
in class UserInterface
public boolean hasScriptThread()
hasScriptThread
in class UserInterface
public void insertInput(java.lang.String input)
insertInput
in class UserInterface
public void close()
close
in class VisualizingUserInterface