diva.graph.toolbox
Class DeletionListener
java.lang.Object
diva.graph.toolbox.DeletionListener
- All Implemented Interfaces:
- ActionListener, EventListener
public class DeletionListener
- extends Object
- implements ActionListener
This class provides deletion support for most simple JGraph
components. Associate this class with some action (such as a key
press on an instance of the JGraph class). Any nodes or edges in
the selection model of the graph pane's controller will be removed.
- Version:
- $Revision: 1.4 $
- Author:
- Steve Neuendorffer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeletionListener
public DeletionListener()
actionPerformed
public void actionPerformed(ActionEvent e)
- Delete any nodes or edges from the graph that are currently
selected. In addition, delete any edges that are connected to
any deleted nodes.
- Specified by:
actionPerformed
in interface ActionListener
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.