public interface ConnectProvider
Modifier and Type | Method and Description |
---|---|
void |
createConnection(Widget sourceWidget,
Widget targetWidget)
Called for creating a new connection between a specified source and target widget.
|
boolean |
hasCustomTargetWidgetResolver(Scene scene)
Called to check whether the provider has a custom target widget resolver.
|
boolean |
isSourceWidget(Widget sourceWidget)
Called for checking whether a specified source widget is a possible source of a connection.
|
ConnectorState |
isTargetWidget(Widget sourceWidget,
Widget targetWidget)
Called for checking whether a connection could be created between a specified source and target widget.
|
Widget |
resolveTargetWidget(Scene scene,
Point sceneLocation)
Called to find the target widget of a possible connection.
|
boolean isSourceWidget(Widget sourceWidget)
sourceWidget
- the source widgetConnectorState isTargetWidget(Widget sourceWidget, Widget targetWidget)
sourceWidget
- the source widgettargetWidget
- the target widgetboolean hasCustomTargetWidgetResolver(Scene scene)
scene
- the scene where the resolver will be calledWidget resolveTargetWidget(Scene scene, Point sceneLocation)
scene
- the scenesceneLocation
- the scene locationvoid createConnection(Widget sourceWidget, Widget targetWidget)
sourceWidget
- the source widgettargetWidget
- the target widget