public class FXConnection
extends javafx.scene.Group
FXConnection
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,IFXAnchor> |
anchors
Returns the
ReadOnlyMapProperty which stores the
AnchorKey s and corresponding IFXAnchor s which determine
the start point, way points, and end point of this FXConnection . |
impl_traversalEngineProperty, needsLayoutProperty
accessibleHelpProperty, 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 |
FXConnection.FXChopBoxHelper
The
FXConnection.FXChopBoxHelper can be registered for an FXConnection
and serves as a FXChopBoxAnchor.ReferencePointProvider for all AnchorKey s
of that FXConnection which are registered at
FXChopBoxAnchor s. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CSS_CLASS_DECORATION
CSS class assigned to decoration visuals.
|
Constructor and Description |
---|
FXConnection()
Constructs a new
FXConnection whose start and end point are set
to null . |
Modifier and Type | Method and Description |
---|---|
void |
addWayAnchor(int index,
IFXAnchor anchor)
Adds the given
IFXAnchor as a way point anchor for the given
index into the anchorsProperty() of this FXConnection . |
void |
addWayPoint(int index,
Point wayPointInLocal)
Adds an
FXStaticAnchor yielding the given Point as a way
point anchor for the given index into the anchorsProperty() of
this FXConnection . |
protected javafx.beans.property.ReadOnlyMapProperty<AnchorKey,IFXAnchor> |
anchorsProperty()
Returns the
ReadOnlyMapProperty which stores the
AnchorKey s and corresponding IFXAnchor s which determine
the start point, way points, and end point of this FXConnection . |
protected Point |
arrangeDecoration(IFXDecoration 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
FXConnection . |
protected void |
arrangeStartDecoration()
Updates the start decoration of this
FXConnection . |
protected javafx.collections.MapChangeListener<? super AnchorKey,? super Point> |
createPCL(AnchorKey anchorKey)
Creates a position change listener (PCL) which
refreshes this FXConnection 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<IFXAnchor> |
getAnchors()
Returns a
List containing the IFXAnchor s which are
assigned to this FXConnection in the order: start anchor, way
point anchors, end anchor. |
FXGeometryNode<ICurve> |
getCurveNode()
Returns the
FXGeometryNode which displays the curve geometry. |
IFXAnchor |
getEndAnchor()
|
protected AnchorKey |
getEndAnchorKey()
Returns the end
AnchorKey for this FXConnection . |
IFXDecoration |
getEndDecoration()
|
Point |
getEndPoint()
Returns the end
Point of this FXConnection 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
Point s constituting this FXConnection within
its coordinate system in the order: start point, way points, end point. |
IFXConnectionRouter |
getRouter()
Returns the
IFXConnectionRouter of this FXConnection . |
IFXAnchor |
getStartAnchor()
|
protected AnchorKey |
getStartAnchorKey()
Returns the start
AnchorKey for this FXConnection . |
IFXDecoration |
getStartDecoration()
|
Point |
getStartPoint()
Returns the start
Point of this FXConnection 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. |
IFXAnchor |
getWayAnchor(int index)
|
protected AnchorKey |
getWayAnchorKey(int index)
|
java.util.List<IFXAnchor> |
getWayAnchors()
|
int |
getWayAnchorsSize()
Returns the number of way
IFXAnchor s currently assigned to this
FXConnection . |
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 FXConnection 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(IFXAnchor anchor,
AnchorKey anchorKey,
int wayIndex)
|
protected void |
refreshGeometry()
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
FXConnection . |
protected void |
removeAnchor(AnchorKey anchorKey,
IFXAnchor oldAnchor)
|
void |
removeWayPoint(int index)
Removes the way point specified by the given way anchor index from this
FXConnection . |
void |
setAnchors(java.util.List<IFXAnchor> anchors)
|
void |
setEndAnchor(IFXAnchor anchor)
Sets the end
IFXAnchor of this FXConnection to the given
value. |
void |
setEndDecoration(IFXDecoration endDeco)
Sets the end
IFXDecoration of this FXConnection to the
given value. |
void |
setEndPoint(Point endPointInLocal)
|
void |
setRouter(IFXConnectionRouter router)
Sets the
IFXConnectionRouter of this FXConnection to the
given value. |
void |
setStartAnchor(IFXAnchor anchor)
Sets the start
IFXAnchor of this FXConnection to the
given value. |
void |
setStartDecoration(IFXDecoration startDeco)
Sets the start
IFXDecoration of this FXConnection to the
given value. |
void |
setStartPoint(Point startPointInLocal)
|
void |
setWayAnchor(int index,
IFXAnchor anchor)
Sets the way anchor for the given way anchor index to the given
IFXAnchor . |
void |
setWayAnchors(java.util.List<IFXAnchor> anchors)
|
void |
setWayPoint(int index,
Point wayPointInLocal)
Sets the way anchor for the given way anchor index to an
FXStaticAnchor which yields the given Point . |
void |
setWayPoints(java.util.List<Point> wayPoints)
|
autoSizeChildrenProperty, getChildren, impl_computeLayoutBounds, isAutoSizeChildren, layoutChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildren
computeMinHeight, 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, updateBounds
accessibleHelpProperty, 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, visibleProperty
protected javafx.beans.property.ReadOnlyMapProperty<AnchorKey,IFXAnchor> anchorsProperty
ReadOnlyMapProperty
which stores the
AnchorKey
s and corresponding IFXAnchor
s which determine
the start point, way points, and end point of this FXConnection
.getAnchors()
,
setAnchors(List)
public static final java.lang.String CSS_CLASS_DECORATION
public FXConnection()
FXConnection
whose start and end point are set
to null
.public void addWayAnchor(int index, IFXAnchor anchor)
IFXAnchor
as a way point anchor for the given
index into the anchorsProperty()
of this FXConnection
.index
- The position where the IFXAnchor
is inserted within
the way point anchors of this FXConnection
.anchor
- The IFXAnchor
which determines the position of the
corresponding way point.public void addWayPoint(int index, Point wayPointInLocal)
FXStaticAnchor
yielding the given Point
as a way
point anchor for the given index into the anchorsProperty()
of
this FXConnection
.index
- The position where the IFXAnchor
is inserted within
the way point anchors of this FXConnection
.wayPointInLocal
- The position for the specified way point.protected javafx.beans.property.ReadOnlyMapProperty<AnchorKey,IFXAnchor> anchorsProperty()
ReadOnlyMapProperty
which stores the
AnchorKey
s and corresponding IFXAnchor
s which determine
the start point, way points, and end point of this FXConnection
.getAnchors()
,
setAnchors(List)
protected Point arrangeDecoration(IFXDecoration decoration, Point start, Vector direction, Point decoStart, Vector decoDirection)
decoration
- The IFXDecoration
to arrange.start
- The offset for the decoration visual.direction
- The direction of the FXConnection
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()
FXConnection
.protected void arrangeStartDecoration()
FXConnection
.protected javafx.collections.MapChangeListener<? super AnchorKey,? super Point> createPCL(AnchorKey anchorKey)
refreshes
this FXConnection
upon anchor position changes
corresponding to the given AnchorKey
.anchorKey
- The AnchorKey
for which a position change will trigger
a refreshGeometry()
with the returned PCL.refresh
this FXConnection
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 key
getWayIndex(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<IFXAnchor> getAnchors()
List
containing the IFXAnchor
s which are
assigned to this FXConnection
in the order: start anchor, way
point anchors, end anchor.List
containing the IFXAnchor
s which are
assigned to this FXConnection
.public FXGeometryNode<ICurve> getCurveNode()
FXGeometryNode
which displays the curve geometry.FXGeometryNode
which displays the curve geometry.protected AnchorKey getEndAnchorKey()
AnchorKey
for this FXConnection
. An end
AnchorKey
uses the curve node
as its
anchored and "end"
as its role.AnchorKey
for this FXConnection
.public IFXDecoration getEndDecoration()
decoration
of this
FXConnection
, or null
.public Point getEndPoint()
Point
of this FXConnection
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 FXConnection
, or
null
.public Point[] getPoints()
Point
s constituting this FXConnection
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.Point
s constituting this FXConnection
.public IFXConnectionRouter getRouter()
IFXConnectionRouter
of this FXConnection
.IFXConnectionRouter
of this FXConnection
.public IFXAnchor getStartAnchor()
anchor
, or
null
.protected AnchorKey getStartAnchorKey()
AnchorKey
for this FXConnection
. A
start AnchorKey
uses the curve node
as
its anchored and "start"
as its role.AnchorKey
for this FXConnection
.public IFXDecoration getStartDecoration()
decoration
of this
FXConnection
, or null
.public Point getStartPoint()
Point
of this FXConnection
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 FXConnection
, or
null
.public IFXAnchor getWayAnchor(int index)
protected AnchorKey getWayAnchorKey(int index)
public java.util.List<IFXAnchor> getWayAnchors()
List
containing the way anchors
currently assigned to this FXConnection
.public int getWayAnchorsSize()
IFXAnchor
s currently assigned to this
FXConnection
.IFXAnchor
s currently assigned to this
FXConnection
.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 FXConnection
for the given
AnchorKey
.public Point getWayPoint(int index)
Point
for the given way anchor index within the
coordinate system of this FXConnection
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 FXConnection
, or
null
.public java.util.List<Point> getWayPoints()
List
containing the way Point
s of this
FXConnection
.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(IFXAnchor anchor, AnchorKey anchorKey, int wayIndex)
IFXAnchor
into the anchorsProperty()
of this FXConnection
. The given AnchorKey
is attached to
the IFXAnchor
, supplying it with the previously
registered
anchor information.
Furthermore, a PCL
for the
AnchorKey
is registered on the position property of the
IFXAnchor
and the visualization is refreshed
.protected void refreshGeometry()
points
constituting this
FXConnection
,ICurve
geometry through those Point
s
using the IFXConnectionRouter
of this FXConnection
,curve node
with
that ICurve
,start decoration
and
end decoration
of this FXConnection
.
protected void registerAnchorInfos(IAdaptable adaptable)
IAdaptable
. These anchor information is supplied to all anchors
which are assigned to this FXConnection
. Per default, an
FXConnection.FXChopBoxHelper
is registered as a FXChopBoxAnchor.ReferencePointProvider
, so that the FXConnection
works in conjunction with
FXChopBoxAnchor
.adaptable
- The IAdaptable
on which anchor information is
registered via adapters.public void removeAllWayPoints()
FXConnection
.public void removeWayPoint(int index)
FXConnection
.index
- The way anchor index specifying which way point to remove.public void setAnchors(java.util.List<IFXAnchor> anchors)
anchors
of this FXConnection
with the given IFXAnchor
s, i.e. the first given IFXAnchor
replaces the currently assigned start anchor, the last given
IFXAnchor
replaces the currently assigned end anchor, and the
intermediate IFXAnchor
s replace the currently assigned way
anchors.anchors
- The new IFXAnchor
s for this FXConnection
.java.lang.IllegalArgumentException
- when less than 2 IFXAnchor
s are given.public void setEndAnchor(IFXAnchor anchor)
IFXAnchor
of this FXConnection
to the given
value.anchor
- The new end IFXAnchor
for this FXConnection
.public void setEndDecoration(IFXDecoration endDeco)
IFXDecoration
of this FXConnection
to the
given value.endDeco
- The new end IFXDecoration
for this
FXConnection
.public void setEndPoint(Point endPointInLocal)
endPointInLocal
- The new end Point
for this FXConnection
.public void setRouter(IFXConnectionRouter router)
IFXConnectionRouter
of this FXConnection
to the
given value.router
- The new IFXConnectionRouter
for this
FXConnection
.public void setStartAnchor(IFXAnchor anchor)
IFXAnchor
of this FXConnection
to the
given value.anchor
- The new start IFXAnchor
for this FXConnection
.public void setStartDecoration(IFXDecoration startDeco)
IFXDecoration
of this FXConnection
to the
given value.startDeco
- The new start IFXDecoration
for this
FXConnection
.public void setStartPoint(Point startPointInLocal)
startPointInLocal
- The new start Point
for this FXConnection
.public void setWayAnchor(int index, IFXAnchor anchor)
IFXAnchor
.index
- The way anchor index of the way anchor to replace.anchor
- The new way IFXAnchor
for that index.public void setWayAnchors(java.util.List<IFXAnchor> anchors)
anchors
- The new way IFXAnchor
s for this FXConnection
.public void setWayPoint(int index, Point wayPointInLocal)
FXStaticAnchor
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 Point
s for this FXConnection
.Copyright (c) 2014 itemis AG and others. All rights reserved.