public class FXBendConnectionPolicy.AnchorHandle
extends java.lang.Object
FXBendConnectionPolicy.AnchorHandle
represents an explicit IAnchor
within the
manipulated Connection
. The associated connection index is kept
up-to-date by this policy, so that FXBendConnectionPolicy.AnchorHandle
s can safely be
used and even passed to the user.Constructor and Description |
---|
AnchorHandle(int explicitAnchorIndex)
Creates a new
FXBendConnectionPolicy.AnchorHandle for the explicit anchor at the
given index. |
Modifier and Type | Method and Description |
---|---|
IAnchor |
getAnchor()
Returns the
IAnchor that corresponds to this
FXBendConnectionPolicy.AnchorHandle . |
int |
getConnectionIndex()
Returns the index within the Connection's anchors for this
FXBendConnectionPolicy.AnchorHandle . |
Point |
getInitialPosition()
Returns the initial position of the referenced anchor.
|
int |
getOperationIndex()
Returns the operation index for this
FXBendConnectionPolicy.AnchorHandle . |
Point |
getPosition()
Returns the current position of the referenced anchor.
|
boolean |
isConnected()
Returns whether the anchor is connected.
|
public AnchorHandle(int explicitAnchorIndex)
FXBendConnectionPolicy.AnchorHandle
for the explicit anchor at the
given index.explicitAnchorIndex
- The explicit anchor index for which to create a handle.public IAnchor getAnchor()
IAnchor
that corresponds to this
FXBendConnectionPolicy.AnchorHandle
.IAnchor
that corresponds to this
FXBendConnectionPolicy.AnchorHandle
.public int getConnectionIndex()
FXBendConnectionPolicy.AnchorHandle
.FXBendConnectionPolicy.AnchorHandle
.public Point getInitialPosition()
public int getOperationIndex()
FXBendConnectionPolicy.AnchorHandle
.FXBendConnectionPolicy.AnchorHandle
.public Point getPosition()
public boolean isConnected()
Copyright (c) 2014 itemis AG and others. All rights reserved.