|
Geometry-Based Edge Clustering
|
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... | |
| boolean | isMeshSelected () |
| Returns whether the mesh radio button is selected in the control panel. More... | |
| void | autoMesh (int dx, int dy) |
| Performs the automatic control mesh creation. More... | |
| void | bundleEdges () |
| Performs the edge bundling process. | |
| void | clearCanvas () |
| Clears the canvas. | |
| void | clearMesh () |
| Clears the control mesh. | |
| void | connectAll () |
| Connects all Nodes with each other. | |
| void | loadGraph (File file) |
| Loads a graph from a gdf-file. More... | |
| void | paintCanvas () |
| Re-draws the canvas. | |
| void | saveGraph (File file) |
| Saves the current graph in a gdf-File. More... | |
| void | unbundleEdges () |
| Unbundles the Edges of the graph. | |
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.autoMesh | ( | int | dx, |
| int | dy | ||
| ) |
Performs the automatic control mesh creation.
| dx | The cell size in x-direction. |
| dy | The cell size in y-direction. |
Definition at line 87 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.
| boolean MainWindow.isMeshSelected | ( | ) |
Returns whether the mesh radio button is selected in the control panel.
Definition at line 78 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 123 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 156 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.