diva.graphx.toolbox
Class ClearDeletionPolicy

java.lang.Object
  extended by diva.graphx.toolbox.ClearDeletionPolicy
All Implemented Interfaces:
DeletionPolicy

public class ClearDeletionPolicy
extends Object
implements DeletionPolicy

A deletion policy that deletes edges that are connected to a node that is about to be deleted.

Version:
$Revision: 1.1 $
Author:
John Reekie

Constructor Summary
ClearDeletionPolicy()
           
 
Method Summary
 void connectedHead(GraphController controller, GraphModel model, Object edge, Object node)
          Handle an edge that is connected at the head to a node that is about to be deleted, but which is not itself in the selection.
 void connectedTail(GraphController controller, GraphModel model, Object edge, Object node)
          Handle an edge that is connected at the tail to a node that is about to be deleted, but which is not itself in the selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearDeletionPolicy

public ClearDeletionPolicy()
Method Detail

connectedHead

public void connectedHead(GraphController controller,
                          GraphModel model,
                          Object edge,
                          Object node)
Handle an edge that is connected at the head to a node that is about to be deleted, but which is not itself in the selection.

Specified by:
connectedHead in interface DeletionPolicy

connectedTail

public void connectedTail(GraphController controller,
                          GraphModel model,
                          Object edge,
                          Object node)
Handle an edge that is connected at the tail to a node that is about to be deleted, but which is not itself in the selection. Note: this method may not function correctly with self-loops. This should be fixed.

Specified by:
connectedTail in interface DeletionPolicy


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.