Class 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
    • 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.
      • 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