easik.ui.menu.popup
Class NewEdgeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by easik.ui.menu.popup.NewEdgeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class NewEdgeAction
extends javax.swing.AbstractAction

This class contains the action for the click on the popup menu to create an new edge. This could be boiled down a little bit in order to remove extra classes (possibly combining it with the other edge adding routine)

Version:
2006-07-13 Kevin Green
Author:
Rob Fletcher 2005, Kevin Green 2006
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
NewEdgeAction()
          Prepare the menu option for a new edge
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          The action for creating a new edge.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewEdgeAction

public NewEdgeAction()
Prepare the menu option for a new edge

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
The action for creating a new edge. Make sure the selection is alright, and then create the edge.

Parameters:
e - The action event