public class GUIUserInterface extends VisualizingUserInterface
UserInterface.NullUserInterfaceinputHistory, 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, windowOpenedalgorithmMessage, 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, warningOutputFacpublic void init(MainControl mainControl)
UserInterfaceinit in class VisualizingUserInterfacemainControl - the main control of the program.public void startInitialization()
UserInterfacestartInitialization in class UserInterfacepublic boolean showGraphFilesFrame()
showGraphFilesFrame in class VisualizingUserInterfacepublic void mainLoop()
UserInterfacemainLoop in class UserInterfacepublic void derivedUserOutput(java.lang.String message)
derivedUserOutput in class UserInterfacepublic java.lang.String userInput()
UserInterfaceuserInput in class UserInterfacepublic void initializeMessage()
UserInterfaceinitializeMessage in class UserInterfacepublic void startMessage()
UserInterfacestartMessage in class UserInterfacepublic void signalUserInput(java.lang.String prefix)
UserInterfacesignalUserInput in class UserInterfaceprefix - an additional string for the signal.public void simulateUserInput(java.lang.String input,
boolean print,
boolean execute)
UserInterfacesimulateUserInput in class UserInterfaceinput - 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)
UserInterfacesetProgress in class UserInterfaceprogress - the progress. Must be between 0 (started) and 1 (finished).public void hideProgressOutput(java.lang.Object sender)
UserInterfacehideProgressOutput in class UserInterfacepublic void setProgressMessage(java.lang.Object sender,
java.lang.String message)
UserInterfacesetProgressMessage in class UserInterfacesender - the sender of the messagepublic OperationThread getOperationThread()
getOperationThread in class UserInterfacepublic void setOperationThread(OperationThread operationThread)
setOperationThread in class UserInterfacepublic void removeOperationThread()
removeOperationThread in class UserInterfacepublic void setScriptThread(ExecuterThread thread)
setScriptThread in class UserInterfacepublic void removeScriptThread()
removeScriptThread in class UserInterfacepublic boolean hasScriptThread()
hasScriptThread in class UserInterfacepublic void insertInput(java.lang.String input)
insertInput in class UserInterfacepublic void close()
close in class VisualizingUserInterface