Force-Directed Edge Bundling
|
This class initializes the application and also contains the container for all the GUI elements. More...
Public Member Functions | |
MainWindow () | |
Creates the application. | |
JFrame | getFrame () |
Returns the JFrame that contains all the GUI elements. More... | |
MouseMode | getMouseMode () |
Returns the the current mode of the mouse cursor. More... | |
void | setMouseMode (MouseMode mouseMode) |
Sets the mode of the mouse cursor. More... | |
void | bundleEdges (int stiffness, boolean animate) |
Performs the edge bundling process. More... | |
void | clearCanvas () |
Clears the canvas. | |
void | connectAll () |
Connects all Nodes with each other. | |
void | loadGraph (File file) |
Loads a graph from a gdf-file. More... | |
void | saveGraph (File file) |
Saves the current graph in a gdf-File. More... | |
void | unbundleEdges () |
Unbundles the Edges of the graph. | |
void | updateProgress (int progress) |
Updates the progress bar with the specified value. More... | |
Static Public Member Functions | |
static void | main (String[] args) |
Launches the application. | |
Private Member Functions | |
void | initialize () |
Initializes the contents of the frame. | |
This class initializes the application and also contains the container for all the GUI elements.
Definition at line 20 of file MainWindow.java.
void MainWindow.bundleEdges | ( | int | stiffness, |
boolean | animate | ||
) |
Performs the edge bundling process.
stiffness | The stiffness of the Edges. |
animate | Determines whether the bundling is animated. |
Definition at line 79 of file MainWindow.java.
JFrame MainWindow.getFrame | ( | ) |
Returns the JFrame that contains all the GUI elements.
Definition at line 54 of file MainWindow.java.
MouseMode MainWindow.getMouseMode | ( | ) |
Returns the the current mode of the mouse cursor.
Definition at line 62 of file MainWindow.java.
void MainWindow.loadGraph | ( | File | file) |
Loads a graph from a gdf-file.
file | The file in which the graph is stored. |
Definition at line 101 of file MainWindow.java.
void MainWindow.saveGraph | ( | File | file) |
Saves the current graph in a gdf-File.
file | The file in which the graph is saved. |
Definition at line 127 of file MainWindow.java.
void MainWindow.setMouseMode | ( | MouseMode | mouseMode) |
Sets the mode of the mouse cursor.
mouseMode | The mode to which the mouse cursor is set. |
Definition at line 70 of file MainWindow.java.
void MainWindow.updateProgress | ( | int | progress) |
Updates the progress bar with the specified value.
progress | The current progress value. |
Definition at line 155 of file MainWindow.java.