diva.canvas.connector
Interface ConnectorListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
BasicEdgeController.EdgeDropper, ConnectorAdapter, EdgeController.EdgeDropper

public interface ConnectorListener
extends 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:
$Revision: 1.5 $
Author:
John Reekie (johnr@eecs.berkeley.edu), Michael Shilman (michaels@eecs.berkeley.edu)

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.



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