diva.graph.toolbox
Class DeletionListener

java.lang.Object
  extended by diva.graph.toolbox.DeletionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class DeletionListener
extends java.lang.Object
implements java.awt.event.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:
$Id: DeletionListener.java 41477 2006-03-29 00:03:58Z cxh $
Author:
Steve Neuendorffer
Accepted Rating:
Red

Constructor Summary
DeletionListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Delete any nodes or edges from the graph that are currently selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletionListener

public DeletionListener()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.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 java.awt.event.ActionListener