public interface ReconnectProvider
Modifier and Type | Method and Description |
---|---|
boolean |
hasCustomReplacementWidgetResolver(Scene scene)
Called to check whether the provider has a custom replacement widget resolver.
|
ConnectorState |
isReplacementWidget(ConnectionWidget connectionWidget,
Widget replacementWidget,
boolean reconnectingSource)
Called to check for possible replacement of a connection source/target.
|
boolean |
isSourceReconnectable(ConnectionWidget connectionWidget)
Called for checking whether it is possible to reconnection a source of a specified connection widget.
|
boolean |
isTargetReconnectable(ConnectionWidget connectionWidget)
Called for checking whether it is possible to reconnection a target of a specified connection widget.
|
void |
reconnect(ConnectionWidget connectionWidget,
Widget replacementWidget,
boolean reconnectingSource)
Called for replacing a source/target with a new one.
|
void |
reconnectingFinished(ConnectionWidget connectionWidget,
boolean reconnectingSource)
Called to notify about the finish of reconnecting.
|
void |
reconnectingStarted(ConnectionWidget connectionWidget,
boolean reconnectingSource)
Called to notify about the start of reconnecting.
|
Widget |
resolveReplacementWidget(Scene scene,
Point sceneLocation)
Called to find the replacement widget of a possible connection.
|
boolean isSourceReconnectable(ConnectionWidget connectionWidget)
connectionWidget
- the connection widgetboolean isTargetReconnectable(ConnectionWidget connectionWidget)
connectionWidget
- the connection widgetvoid reconnectingStarted(ConnectionWidget connectionWidget, boolean reconnectingSource)
connectionWidget
- the connection widgetreconnectingSource
- if true, then source is being reconnected; if false, then target is being reconnectedvoid reconnectingFinished(ConnectionWidget connectionWidget, boolean reconnectingSource)
connectionWidget
- the connection widgetreconnectingSource
- if true, then source is being reconnected; if false, then target is being reconnectedConnectorState isReplacementWidget(ConnectionWidget connectionWidget, Widget replacementWidget, boolean reconnectingSource)
connectionWidget
- the connection widgetreplacementWidget
- the replacement widgetreconnectingSource
- if true, then source is being reconnected; if false, then target is being reconnectedboolean hasCustomReplacementWidgetResolver(Scene scene)
scene
- the scene where the resolver will be calledWidget resolveReplacementWidget(Scene scene, Point sceneLocation)
scene
- the scenesceneLocation
- the scene locationvoid reconnect(ConnectionWidget connectionWidget, Widget replacementWidget, boolean reconnectingSource)
connectionWidget
- the connection widgetreplacementWidget
- the replacement widgetreconnectingSource
- if true, then source is being reconnected; if false, then target is being reconnected