diva.canvas.connector
Interface ConnectorListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
BasicEdgeController.EdgeDropper, ConnectorAdapter, LinkController.LinkDropper, TransitionController.LinkDropper, TransitionController.LinkDropper

public interface ConnectorListener
extends java.util.EventListener

A listener for changes in a connector's connectivity. Listeners register with the ConnectorManipulator (?) and get called back as the user manipulates a connector.

Calls for disconnecting and reconnecting:

  1. unsnapped
  2. drag drag drag
  3. snapped
  4. released
or for disconnecting:
  1. unsnapped
  2. drag drag drag
  3. released

Version:
$Id: ConnectorListener.java 38798 2005-07-08 20:00:01Z cxh $
Author:
John Reekie, Michael Shilman
Accepted Rating:
Red

Method Summary
 void connectorDragged(ConnectorEvent e)
          Called when a connector end is dragged.
 void connectorDropped(ConnectorEvent e)
          Called when a connector end is dropped.
 void connectorSnapped(ConnectorEvent e)
          Called when a connector end is snapped to a possible target.
 void connectorUnsnapped(ConnectorEvent e)
          Called when a connector end is unsnapped from the site that it was originally attached to, or a possible target.
 

Method Detail

connectorDragged

void connectorDragged(ConnectorEvent e)
Called when a connector end is dragged. If currently over a target (and regardless of whether the connector is snapped to that target), the source field will be non-null.


connectorDropped

void connectorDropped(ConnectorEvent e)
Called when a connector end is dropped. If the connector is currently snapped to a target, the target can be obtained from the event as the source field.


connectorSnapped

void connectorSnapped(ConnectorEvent e)
Called when a connector end is snapped to a possible target. The target can be obtained as the source field of the event.


connectorUnsnapped

void connectorUnsnapped(ConnectorEvent e)
Called when a connector end is unsnapped from the site that it was originally attached to, or a possible target. The figure that it was unsnapped from is the source field of the event.