Geometry-Based Edge Clustering
 All Classes Functions
MainWindow Class Reference

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.
 

Detailed Description

This class initializes the application and also contains the container for all the GUI elements.

Author
Kurt Leimer

Definition at line 20 of file MainWindow.java.

Member Function Documentation

void MainWindow.autoMesh ( int  dx,
int  dy 
)

Performs the automatic control mesh creation.

Parameters
dxThe cell size in x-direction.
dyThe 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.

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.

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.

Returns
true if the mesh radio button is selected, false otherwise.

Definition at line 78 of file MainWindow.java.

void MainWindow.loadGraph ( File  file)

Loads a graph from a gdf-file.

Parameters
fileThe 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.

Parameters
fileThe 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.

Parameters
mouseModeThe mode to which the mouse cursor is set.

Definition at line 70 of file MainWindow.java.


The documentation for this class was generated from the following file: