public class FreeConnectionWidget extends ConnectionWidget
ConnectionWidget.RoutingPolicy
Widget.Dependency
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
addRemoveControlPoint(Point localLocation)
Adds or removes a control point on a specified location
|
void |
setSensitivity(double createSensitivity,
double deleteSensitivity)
Sets a sensitivity.
|
calculateClientArea, calculateRouting, getControlPoint, getControlPointCutDistance, getControlPointHitAt, getControlPoints, getControlPointsCursor, getControlPointShape, getCursorAt, getEndPointShape, getFirstControlPoint, getLastControlPoint, getLineColor, getRouter, getRoutingPolicy, getSourceAnchor, getSourceAnchorEntry, getSourceAnchorShape, getStroke, getTargetAnchor, getTargetAnchorEntry, getTargetAnchorShape, getTargetAnchorShapeRotation, isFirstControlPointHitAt, isHitAt, isLastControlPointHitAt, isPaintControlPoints, isRouted, isValidated, notifyStateChanged, paintWidget, removeConstraint, reroute, setConstraint, setConstraint, setControlPointCutDistance, setControlPoints, setControlPointsCursor, setControlPointShape, setEndPointShape, setLineColor, setPaintControlPoints, setRouter, setRoutingPolicy, setSourceAnchor, setSourceAnchorShape, setStroke, setTargetAnchor, setTargetAnchorShape
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, paint, paintBackground, paintBorder, paintChildren, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
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 pointpublic void addRemoveControlPoint(Point localLocation)
localLocation
- the local locationpublic void setSensitivity(double createSensitivity, double deleteSensitivity)
createSensitivity
- the sensitivity for adding a control pointdeleteSensitivity
- the sensitivity for removing a control point