de.uni_leipzig.cvk.gui
Class Application

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by de.uni_leipzig.cvk.gui.Application
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class Application
extends java.awt.event.MouseAdapter
implements java.awt.event.KeyListener, java.awt.event.ActionListener

The Application class is used to build all Swing components with all other classes in this package and with a Model instance to get all necessary data.

Author:
rspeck
 

Nested Class Summary
(package private) static class Application.MenuArrowIcon
          Adding an arrow to Icon
(package private) static class Application.MenuToggleButton
          Adding JPopupMenu to JToolBar-Button
 
Field Summary
static int HEIGHT
           
static java.lang.String LOGO
           
static java.lang.String NAME
           
static int WIDTH
           
 
Constructor Summary
Application(Model model)
          Constructs a new Application by initializing a AggregatePanel, ClusterPanel and a GraphStatisticPanel Observer instance and some other Swing components with data of the given Model instance data.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JPanel getJContentPane()
          This method initializes jContentPane
 javax.swing.JFileChooser getOpenChooser()
           
 javax.swing.JFileChooser getSaveChooser()
           
 void keyPressed(java.awt.event.KeyEvent e)
          keyPressed(KeyEvent e) to actionPerformed(ActionEvent e)
 void keyReleased(java.awt.event.KeyEvent e)
          Empty
 void keyTyped(java.awt.event.KeyEvent e)
          Empty
 void mouseClicked(java.awt.event.MouseEvent e)
          Sets focus to clicked Component
 
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEIGHT

public static final int HEIGHT
See Also:
Constant Field Values

LOGO

public static final java.lang.String LOGO
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

WIDTH

public static final int WIDTH
See Also:
Constant Field Values
Constructor Detail

Application

public Application(Model model)
Constructs a new Application by initializing a AggregatePanel, ClusterPanel and a GraphStatisticPanel Observer instance and some other Swing components with data of the given Model instance data. Registers all the Observers to the given model.

Parameters:
model - the Model instance contains the data.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getJContentPane

public javax.swing.JPanel getJContentPane()
This method initializes jContentPane

Returns:
javax.swing.JPanel

getOpenChooser

public javax.swing.JFileChooser getOpenChooser()

getSaveChooser

public javax.swing.JFileChooser getSaveChooser()

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
keyPressed(KeyEvent e) to actionPerformed(ActionEvent e)

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Empty

Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Empty

Specified by:
keyTyped in interface java.awt.event.KeyListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Sets focus to clicked Component

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter