ptolemy.vergil.actor
Class ActorGraphModel.LinkModel.LinkChangeListener

java.lang.Object
  extended byptolemy.vergil.actor.ActorGraphModel.LinkModel.LinkChangeListener
All Implemented Interfaces:
ChangeListener
Enclosing class:
ActorGraphModel.LinkModel

public class ActorGraphModel.LinkModel.LinkChangeListener
extends java.lang.Object
implements ChangeListener

This change listener is responsible for dispatching graph events when an edge is moved. It works the same for heads and tails.


Constructor Summary
ActorGraphModel.LinkModel.LinkChangeListener(Link link, CompositeEntity container, java.lang.StringBuffer failMoML)
           
 
Method Summary
 void changeExecuted(ChangeRequest change)
          React to a change request has been successfully executed.
 void changeFailed(ChangeRequest change, java.lang.Exception exception)
          React to a change request has resulted in an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActorGraphModel.LinkModel.LinkChangeListener

public ActorGraphModel.LinkModel.LinkChangeListener(Link link,
                                                    CompositeEntity container,
                                                    java.lang.StringBuffer failMoML)
Method Detail

changeFailed

public void changeFailed(ChangeRequest change,
                         java.lang.Exception exception)
Description copied from interface: ChangeListener
React to a change request has resulted in an exception. This method is called after a change request was executed, but during the execution an exception was thrown.

Specified by:
changeFailed in interface ChangeListener
Parameters:
change - The change that was attempted or null if the change was not done via a ChangeRequest.
exception - The exception that resulted.

changeExecuted

public void changeExecuted(ChangeRequest change)
Description copied from interface: ChangeListener
React to a change request has been successfully executed. This method is called after a change request has been executed successfully.

Specified by:
changeExecuted in interface ChangeListener
Parameters:
change - The change that has been executed, or null if the change was not done via a ChangeRequest.