Package diva.graph.toolbox
Class DeletionListener
- java.lang.Object
-
- 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$
- Author:
- Steve Neuendorffer
- Pt.AcceptedRating:
- Red
-
-
Constructor Summary
Constructors Constructor Description DeletionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Delete any nodes or edges from the graph that are currently selected.
-
-
-
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 interfacejava.awt.event.ActionListener
-
-