|
org.netbeans.api.visual 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReconnectProvider
This interface controls a reconnect action.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean isSourceReconnectable(ConnectionWidget connectionWidget)
connectionWidget - the connection widget
boolean isTargetReconnectable(ConnectionWidget connectionWidget)
connectionWidget - the connection widget
void 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 called
Widget resolveReplacementWidget(Scene scene, Point sceneLocation)
scene - the scenesceneLocation - the scene location
void 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
|
org.netbeans.api.visual 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||