|
org.netbeans.api.visual 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectProvider
This interface controls a connect action.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean isSourceWidget(Widget sourceWidget)
sourceWidget - the source widget
ConnectorState isTargetWidget(Widget sourceWidget, Widget targetWidget)
sourceWidget - the source widgettargetWidget - the target widget
boolean hasCustomTargetWidgetResolver(Scene scene)
scene - the scene where the resolver will be called
Widget resolveTargetWidget(Scene scene, Point sceneLocation)
scene - the scenesceneLocation - the scene location
void createConnection(Widget sourceWidget, Widget targetWidget)
sourceWidget - the source widgettargetWidget - the target widget
|
org.netbeans.api.visual 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||