public class Connection
extends javafx.scene.Group
Connection provides a visualization for a binary connection
whose route can be influenced by a number of way points.| Type | Property and Description |
|---|---|
protected javafx.beans.property.ReadOnlyMapProperty<AnchorKey,IAnchor> |
anchors
Returns the
ReadOnlyMapProperty which stores the
AnchorKeys and corresponding IAnchors which determine
the start point, way points, and end point of this Connection. |
javafx.beans.property.DoubleProperty |
clickableAreaWidth
Returns a (writable) property that controls the width of the clickable
area.
|
impl_traversalEngineProperty, needsLayoutPropertyaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty| Modifier and Type | Class and Description |
|---|---|
static class |
Connection.ChopBoxHelper
The
Connection.ChopBoxHelper can be registered for an Connection
and serves as a ChopBoxAnchor.IReferencePointProvider for all AnchorKeys
of that Connection which are registered at
ChopBoxAnchors. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CSS_CLASS_DECORATION
CSS class assigned to decoration visuals.
|
| Constructor and Description |
|---|
Connection()
Constructs a new
Connection whose start and end point are set
to null. |
| Modifier and Type | Method and Description |
|---|---|
void |
addWayAnchor(int index,
IAnchor anchor)
Adds the given
IAnchor as a way point anchor for the given
index into the anchorsProperty() of this Connection. |
void |
addWayPoint(int index,
Point wayPointInLocal)
Adds an
StaticAnchor yielding the given Point as a way
point anchor for the given index into the anchorsProperty() of
this Connection. |
protected javafx.beans.property.ReadOnlyMapProperty<AnchorKey,IAnchor> |
anchorsProperty()
Returns the
ReadOnlyMapProperty which stores the
AnchorKeys and corresponding IAnchors which determine
the start point, way points, and end point of this Connection. |
protected Point |
arrangeDecoration(IConnectionDecoration decoration,
Point start,
Vector direction,
Point decoStart,
Vector decoDirection)
Arranges the given decoration according to the passed-in values.
|
protected void |
arrangeEndDecoration()
Updates the end decoration of this
Connection. |
protected void |
arrangeStartDecoration()
Updates the start decoration of this
Connection. |
javafx.beans.property.DoubleProperty |
clickableAreaWidthProperty()
Returns a (writable) property that controls the width of the clickable
area.
|
protected javafx.collections.MapChangeListener<? super AnchorKey,? super Point> |
createPCL(AnchorKey anchorKey)
Creates a position change listener (PCL) which
refreshes this Connection upon anchor position changes
corresponding to the given AnchorKey. |
protected AnchorKey |
generateWayAnchorKey()
Generates a new, unique way point anchor key.
|
protected int |
getAnchorIndex(AnchorKey anchorKey)
Returns the anchor index for the given
AnchorKey which is:
0 for the start anchor key
getAnchors().size() - 1 for the
end anchor key
getWayIndex(AnchorKey) + 1 for way point anchor
keys
|
protected AnchorKey |
getAnchorKey(int anchorIndex)
Returns the
AnchorKey for the given anchor index, i.e. the
reverse of getAnchorIndex(AnchorKey). |
java.util.List<IAnchor> |
getAnchors()
Returns a
List containing the IAnchors which are
assigned to this Connection in the order: start anchor, way
point anchors, end anchor. |
double |
getClickableAreaWidth()
Returns the value of the clickable area width property (
clickableAreaWidthProperty()). |
GeometryNode<ICurve> |
getCurveNode()
Returns the
GeometryNode which displays the curve geometry. |
IAnchor |
getEndAnchor()
|
protected AnchorKey |
getEndAnchorKey()
Returns the end
AnchorKey for this Connection. |
IConnectionDecoration |
getEndDecoration()
|
Point |
getEndPoint()
Returns the end
Point of this Connection within its
coordinate system which is determined by querying the anchor position for
the end anchor key, or null when
no end anchor is assigned. |
Point[] |
getPoints()
Returns the
Points constituting this Connection within
its coordinate system in the order: start point, way points, end point. |
IConnectionRouter |
getRouter()
Returns the
IConnectionRouter of this Connection. |
IAnchor |
getStartAnchor()
|
protected AnchorKey |
getStartAnchorKey()
Returns the start
AnchorKey for this Connection. |
IConnectionDecoration |
getStartDecoration()
|
Point |
getStartPoint()
Returns the start
Point of this Connection within its
coordinate system which is determined by querying the anchor position for
the start anchor key, or null
when no start anchor is assigned. |
IAnchor |
getWayAnchor(int index)
|
protected AnchorKey |
getWayAnchorKey(int index)
|
java.util.List<IAnchor> |
getWayAnchors()
|
int |
getWayAnchorsSize()
Returns the number of way
IAnchors currently assigned to this
Connection. |
protected int |
getWayIndex(AnchorKey key)
Returns the way anchor index for the given
AnchorKey, i.e. |
Point |
getWayPoint(int index)
Returns the way
Point for the given way anchor index within the
coordinate system of this Connection which is determined by
querying the anchor position for the corresponding
way anchor, or null if no
way anchor is assigned for the given index. |
java.util.List<Point> |
getWayPoints()
|
boolean |
isEndConnected()
Returns
true if the currently assigned
end anchor is bound to an anchorage. |
boolean |
isStartConnected()
Returns
true if the currently assigned
start anchor is bound to an anchorage. |
boolean |
isWayConnected(int index)
Returns
true if the currently assigned
way anchor for the given index is bound to an
anchorage. |
protected void |
putAnchor(IAnchor anchor,
AnchorKey anchorKey,
int wayIndex)
|
protected void |
refresh()
Refreshes the visualization, i.e.
|
protected void |
registerAnchorInfos(IAdaptable adaptable)
Registers anchor information as adapters on the given
IAdaptable
. |
void |
removeAllWayPoints()
Removes all way points of this
Connection. |
protected void |
removeAnchor(AnchorKey anchorKey,
IAnchor oldAnchor)
|
void |
removeWayPoint(int index)
Removes the way point specified by the given way anchor index from this
Connection. |
void |
setAnchors(java.util.List<IAnchor> anchors)
|
void |
setClickableAreaWidth(double clickableAreaWidth)
Sets the value of the clickable area width property (
clickableAreaWidthProperty()). |
void |
setEndAnchor(IAnchor anchor)
Sets the end
IAnchor of this Connection to the given
value. |
void |
setEndDecoration(IConnectionDecoration endDeco)
Sets the end
IConnectionDecoration of this Connection to the
given value. |
void |
setEndPoint(Point endPointInLocal)
|
void |
setRouter(IConnectionRouter router)
Sets the
IConnectionRouter of this Connection to the
given value. |
void |
setStartAnchor(IAnchor anchor)
Sets the start
IAnchor of this Connection to the
given value. |
void |
setStartDecoration(IConnectionDecoration startDeco)
Sets the start
IConnectionDecoration of this Connection to the
given value. |
void |
setStartPoint(Point startPointInLocal)
|
void |
setWayAnchor(int index,
IAnchor anchor)
Sets the way anchor for the given way anchor index to the given
IAnchor. |
void |
setWayAnchors(java.util.List<IAnchor> anchors)
|
void |
setWayPoint(int index,
Point wayPointInLocal)
Sets the way anchor for the given way anchor index to an
StaticAnchor which yields the given Point. |
void |
setWayPoints(java.util.List<Point> wayPoints)
|
autoSizeChildrenProperty, getChildren, impl_computeLayoutBounds, isAutoSizeChildren, layoutChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildrencomputeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_computeContains, impl_computeGeomBounds, impl_createPeer, impl_getAllParentStylesheets, impl_pickNodeLocal, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, impl_updatePeer, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_notifyLayoutBoundsChanged, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, maxHeight, maxWidth, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertyprotected javafx.beans.property.ReadOnlyMapProperty<AnchorKey,IAnchor> anchorsProperty
ReadOnlyMapProperty which stores the
AnchorKeys and corresponding IAnchors which determine
the start point, way points, and end point of this Connection.getAnchors(),
setAnchors(List)public javafx.beans.property.DoubleProperty clickableAreaWidthProperty
public static final java.lang.String CSS_CLASS_DECORATION
public Connection()
Connection whose start and end point are set
to null.public void addWayAnchor(int index,
IAnchor anchor)
IAnchor as a way point anchor for the given
index into the anchorsProperty() of this Connection.index - The position where the IAnchor is inserted within
the way point anchors of this Connection.anchor - The IAnchor which determines the position of the
corresponding way point.public void addWayPoint(int index,
Point wayPointInLocal)
StaticAnchor yielding the given Point as a way
point anchor for the given index into the anchorsProperty() of
this Connection.index - The position where the IAnchor is inserted within
the way point anchors of this Connection.wayPointInLocal - The position for the specified way point.protected javafx.beans.property.ReadOnlyMapProperty<AnchorKey,IAnchor> anchorsProperty()
ReadOnlyMapProperty which stores the
AnchorKeys and corresponding IAnchors which determine
the start point, way points, and end point of this Connection.getAnchors(),
setAnchors(List)protected Point arrangeDecoration(IConnectionDecoration decoration, Point start, Vector direction, Point decoStart, Vector decoDirection)
decoration - The IConnectionDecoration to arrange.start - The offset for the decoration visual.direction - The direction of the Connection at the point where
the decoration is arranged.decoStart - The start point of the decoration within the local coordinate
system of the decoration visual.decoDirection - The direction of the decoration.protected void arrangeEndDecoration()
Connection.protected void arrangeStartDecoration()
Connection.public javafx.beans.property.DoubleProperty clickableAreaWidthProperty()
protected javafx.collections.MapChangeListener<? super AnchorKey,? super Point> createPCL(AnchorKey anchorKey)
refreshes this Connection upon anchor position changes
corresponding to the given AnchorKey.anchorKey - The AnchorKey for which a position change will trigger
a refresh() with the returned PCL.refresh this
Connection when the position for the given
AnchorKey changes.protected AnchorKey generateWayAnchorKey()
curve node as the anchored and a
"waypoint-" prefix for the role.protected int getAnchorIndex(AnchorKey anchorKey)
AnchorKey which is:
0 for the start anchor key
getAnchors().size() - 1 for the
end anchor keygetWayIndex(AnchorKey) + 1 for way point anchor
keysprotected AnchorKey getAnchorKey(int anchorIndex)
AnchorKey for the given anchor index, i.e. the
reverse of getAnchorIndex(AnchorKey).public java.util.List<IAnchor> getAnchors()
List containing the IAnchors which are
assigned to this Connection in the order: start anchor, way
point anchors, end anchor.List containing the IAnchors which are
assigned to this Connection.public double getClickableAreaWidth()
clickableAreaWidthProperty()).clickableAreaWidthProperty().public GeometryNode<ICurve> getCurveNode()
GeometryNode which displays the curve geometry.GeometryNode which displays the curve geometry.protected AnchorKey getEndAnchorKey()
AnchorKey for this Connection. An end
AnchorKey uses the curve node as its
anchored and "end" as its role.AnchorKey for this Connection.public IConnectionDecoration getEndDecoration()
decoration of this
Connection, or null.public Point getEndPoint()
Point of this Connection within its
coordinate system which is determined by querying the anchor position for
the end anchor key, or null when
no end anchor is assigned.Point of this Connection, or
null.public Point[] getPoints()
Points constituting this Connection within
its coordinate system in the order: start point, way points, end point.
They are determined by querying the corresponding anchor positions. In
case not all anchors are assigned, an empty array is returned.Points constituting this Connection.public IConnectionRouter getRouter()
IConnectionRouter of this Connection.IConnectionRouter of this Connection.public IAnchor getStartAnchor()
anchor, or
null.protected AnchorKey getStartAnchorKey()
AnchorKey for this Connection. A
start AnchorKey uses the curve node as
its anchored and "start" as its role.AnchorKey for this Connection.public IConnectionDecoration getStartDecoration()
decoration of this
Connection, or null.public Point getStartPoint()
Point of this Connection within its
coordinate system which is determined by querying the anchor position for
the start anchor key, or null
when no start anchor is assigned.Point of this Connection, or
null.public IAnchor getWayAnchor(int index)
protected AnchorKey getWayAnchorKey(int index)
public java.util.List<IAnchor> getWayAnchors()
List containing the way anchors
currently assigned to this Connection.public int getWayAnchorsSize()
IAnchors currently assigned to this
Connection.IAnchors currently assigned to this
Connection.protected int getWayIndex(AnchorKey key)
AnchorKey, i.e.
0 for the first way anchor, 1
for the seconds, etc.key - The AnchorKey whose way anchor index is returned.AnchorKey.java.lang.IllegalArgumentException - when there currently is no way anchor
assigned to this Connection for the given
AnchorKey.public Point getWayPoint(int index)
Point for the given way anchor index within the
coordinate system of this Connection which is determined by
querying the anchor position for the corresponding
way anchor, or null if no
way anchor is assigned for the given index.index - The way anchor index for which to return the anchor position.Point of this Connection, or
null.public java.util.List<Point> getWayPoints()
List containing the way Points of this
Connection.public boolean isEndConnected()
true if the currently assigned
end anchor is bound to an anchorage. Otherwise
returns false.true if the currently assigned
end anchor is bound to an anchorage,
otherwise false.public boolean isStartConnected()
true if the currently assigned
start anchor is bound to an anchorage.
Otherwise returns false.true if the currently assigned
start anchor is bound to an anchorage,
otherwise false.public boolean isWayConnected(int index)
true if the currently assigned
way anchor for the given index is bound to an
anchorage. Otherwise returns false.index - The way anchor index of the way anchor to test for
connectedness.true if the currently assigned
way anchor for the given index is
bound to an anchorage, otherwise false.protected void putAnchor(IAnchor anchor, AnchorKey anchorKey, int wayIndex)
IAnchor into the anchorsProperty()
of this Connection. The given AnchorKey is attached to
the IAnchor, supplying it with the previously
registered anchor information.
Furthermore, a PCL for the
AnchorKey is registered on the position property of the
IAnchor and the visualization is refreshed.protected void refresh()
points constituting this
Connection,ICurve geometry through those Points
using the IConnectionRouter of this Connection,curve node with
that ICurve,start decoration and
end decoration of this Connection.
protected void registerAnchorInfos(IAdaptable adaptable)
IAdaptable
. These anchor information is supplied to all anchors
which are assigned to this Connection. Per default, an
Connection.ChopBoxHelper is registered as a ChopBoxAnchor.IReferencePointProvider
, so that the Connection works in conjunction with
ChopBoxAnchor.adaptable - The IAdaptable on which anchor information is
registered via adapters.public void removeAllWayPoints()
Connection.public void removeWayPoint(int index)
Connection.index - The way anchor index specifying which way point to remove.public void setAnchors(java.util.List<IAnchor> anchors)
anchors of this Connection
with the given IAnchors, i.e. the first given IAnchor
replaces the currently assigned start anchor, the last given
IAnchor replaces the currently assigned end anchor, and the
intermediate IAnchors replace the currently assigned way
anchors.anchors - The new IAnchors for this Connection.java.lang.IllegalArgumentException - when less than 2 IAnchors are given.public void setClickableAreaWidth(double clickableAreaWidth)
clickableAreaWidthProperty()).clickableAreaWidth - The new value of the clickableAreaWidthProperty()public void setEndAnchor(IAnchor anchor)
IAnchor of this Connection to the given
value.anchor - The new end IAnchor for this Connection.public void setEndDecoration(IConnectionDecoration endDeco)
IConnectionDecoration of this Connection to the
given value.endDeco - The new end IConnectionDecoration for this
Connection.public void setEndPoint(Point endPointInLocal)
endPointInLocal - The new end Point for this Connection.public void setRouter(IConnectionRouter router)
IConnectionRouter of this Connection to the
given value.router - The new IConnectionRouter for this
Connection.public void setStartAnchor(IAnchor anchor)
IAnchor of this Connection to the
given value.anchor - The new start IAnchor for this Connection.public void setStartDecoration(IConnectionDecoration startDeco)
IConnectionDecoration of this Connection to the
given value.startDeco - The new start IConnectionDecoration for this
Connection.public void setStartPoint(Point startPointInLocal)
startPointInLocal - The new start Point for this Connection.public void setWayAnchor(int index,
IAnchor anchor)
IAnchor.index - The way anchor index of the way anchor to replace.anchor - The new way IAnchor for that index.public void setWayAnchors(java.util.List<IAnchor> anchors)
anchors - The new way IAnchors for this Connection.public void setWayPoint(int index,
Point wayPointInLocal)
StaticAnchor which yields the given Point.index - The way anchor index of the way anchor to replace.wayPointInLocal - The new way Point for that index.public void setWayPoints(java.util.List<Point> wayPoints)
wayPoints - The new way Points for this Connection.Copyright (c) 2014 itemis AG and others. All rights reserved.