diva.graphx.toolbox
Class DefaultDeletionPolicy

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

public class DefaultDeletionPolicy
extends Object
implements DeletionPolicy

A default implementation of a deletion policy. This policy disconnects edges that are connected to a node that will be deleted.

Version:
$Revision: 1.1 $
Author:
John Reekie

Constructor Summary
DefaultDeletionPolicy()
           
 
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

DefaultDeletionPolicy

public DefaultDeletionPolicy()
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.

Specified by:
connectedTail in interface DeletionPolicy


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