Class 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

      Constructors 
      Constructor Description
      LinkChangeListener​(Link link, CompositeEntity container, java.lang.StringBuffer failMoML)
      Construct a link change listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void changeExecuted​(ChangeRequest change)
      Called after the change has been executed.
      void changeFailed​(ChangeRequest change, java.lang.Exception exception)
      Handled a failed change request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkChangeListener

        public LinkChangeListener​(Link link,
                                  CompositeEntity container,
                                  java.lang.StringBuffer failMoML)
        Construct a link change listener.
        Parameters:
        link - The link.
        container - The container.
        failMoML - MoML that cleans up the model if the change request fails.
    • Method Detail

      • changeFailed

        public void changeFailed​(ChangeRequest change,
                                 java.lang.Exception exception)
        Handled a failed change request.
        Specified by:
        changeFailed in interface ChangeListener
        Parameters:
        change - The change request.
        exception - The exception.
      • changeExecuted

        public void changeExecuted​(ChangeRequest change)
        Called after the change has been executed.
        Specified by:
        changeExecuted in interface ChangeListener
        Parameters:
        change - The change request.