|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.ConnectionWidget
org.netbeans.api.visual.widget.FreeConnectionWidget
public class FreeConnectionWidget
This class is an extension of the ConnectionWidget. Primarily it is used with FreeRouter and optionally Free*Anchor. It has a method for adding and removing control points on specific locations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget |
---|
Widget.Dependency |
Constructor Summary | |
---|---|
FreeConnectionWidget(Scene scene)
Creates a free connection widget. |
|
FreeConnectionWidget(Scene scene,
double createSensitivity,
double deleteSensitivity)
Creates a free connection widget with a specified create/delete sensitivity. |
Method Summary | |
---|---|
void |
addRemoveControlPoint(Point localLocation)
Adds or removes a control point on a specified location |
Point |
getControlPoint(int index)
Returns a control point at a specific index. |
void |
setSensitivity(double createSensitivity,
double deleteSensitivity)
Sets a sensitivity. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FreeConnectionWidget(Scene scene)
scene
- the scenepublic FreeConnectionWidget(Scene scene, double createSensitivity, double deleteSensitivity)
scene
- the scenecreateSensitivity
- the sensitivity for adding a control pointdeleteSensitivity
- the sensitivity for removing a control pointMethod Detail |
---|
public void addRemoveControlPoint(Point localLocation)
localLocation
- the local locationpublic Point getControlPoint(int index)
getControlPoint
in class ConnectionWidget
index
- the index in the list of control points
ArrayIndexOutOfBoundsException
- when index is out of boundspublic void setSensitivity(double createSensitivity, double deleteSensitivity)
createSensitivity
- the sensitivity for adding a control pointdeleteSensitivity
- the sensitivity for removing a control point
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |