Package diva.canvas.connector
Interface ConnectorListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
BasicEdgeController.EdgeDropper
,ConnectorAdapter
,LinkController.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:
- unsnapped
- drag drag drag
- snapped
- released
- unsnapped
- drag drag drag
- released
- Version:
- $Id$
- Author:
- John Reekie, Michael Shilman
- Pt.AcceptedRating:
- Red
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-