gograph.actions.mode
Class ModeConnectAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--gograph.actions.mode.ModeConnectAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class ModeConnectAction
- extends javax.swing.AbstractAction
Set connexion mode, enabling/disabling edge creation.
- See Also:
- GoGraph,
Serialized Form
| 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 |
ModeConnectAction(GoGraph gograph,
javax.swing.ImageIcon icon)
Creates a new instance of ModeConnectAction. |
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Set connexion mode, enabling/disabling edge creation. |
| 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 |
gograph
protected GoGraph gograph
- Access back to GoGraph panel.
ModeConnectAction
public ModeConnectAction(GoGraph gograph,
javax.swing.ImageIcon icon)
- Creates a new instance of ModeConnectAction.
- Parameters:
gograph - Access back to GoGraph panel.icon - Action icon.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Set connexion mode, enabling/disabling edge creation.
Ports are set visible/invisible.
- Parameters:
e - Evenement source.
Copyright (C) 2003 Stewe Frei. All rights reserved.