public class GraphanaMain
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
lastUsedGraphPath |
static java.lang.String |
lastUsedListPath |
| Constructor and Description |
|---|
GraphanaMain() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
checkArgError(int index,
java.lang.String[] args,
java.lang.String errorMessage)
Returns the string of the given string array at the given index.
|
static void |
errorTerminate(UserInterface userInterface,
java.lang.String statement,
ExecutionError error)
Outputs the given error to the user and terminates the program.
|
static void |
main(java.lang.String[] args) |
static void |
printArgError(int index,
java.lang.String errorMessage)
Outputs the given index and message.
|
public static java.lang.String lastUsedGraphPath
public static java.lang.String lastUsedListPath
public static void errorTerminate(UserInterface userInterface, java.lang.String statement, ExecutionError error)
userInterface - the current user interfacestatement - the statement which caused the errorerror - the occurred errorpublic static void printArgError(int index,
java.lang.String errorMessage)
index - the index to outputerrorMessage - the message to outputpublic static java.lang.String checkArgError(int index,
java.lang.String[] args,
java.lang.String errorMessage)
index - the indexargs - the program argumentserrorMessage - the message to output if the index is out of rangepublic static void main(java.lang.String[] args)