public class FXTransformConnectionPolicy extends FXTransformPolicy
FXTransformConnectionPolicy is an FXTransformPolicy that
is adjusted for the relocation of an Connection. It uses an
FXBendOperation to update the anchors of the Connection
according to the applied translation.TRANSFORM_PROVIDER_KEY| Constructor and Description |
|---|
FXTransformConnectionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTransform(AffineTransform newTransform)
Applies the given
AffineTransform as the new transformation
matrix to the host. |
ITransactionalOperation |
commit()
Returns an
ITransactionalOperation that performs all
manipulations applied by the policy since the last AbstractTransactionPolicy.init() call. |
protected java.util.List<java.lang.Integer> |
getIndicesOfMovableAnchors()
Returns the indices of all movable anchors.
|
void |
init()
Initializes the policy, so that the policy's "work" methods can be used.
|
createOperation, getCurrentNodeTransform, getTransformOperation, updateOperationcreatePostTransform, createPreTransform, getInitialNodeTransform, getSnapToGridOffset, setPostRotate, setPostScale, setPostTransform, setPostTranslate, setPreRotate, setPreScale, setPreTransform, setPreTranslate, setTransform, updateTransformcheckInitialized, getOperation, isInitialized, locallyExecuteOperation, rollbackgetAdaptable, getHost, setAdaptablepublic void applyTransform(AffineTransform newTransform)
AbstractTransformPolicyAffineTransform as the new transformation
matrix to the host. All transformation changes are
applied via this method. Therefore, subclasses can override this method
to perform adjustments that are necessary for its host
.applyTransform in class AbstractTransformPolicy<javafx.scene.Node>newTransform - The new transformation matrix for the host.public ITransactionalOperation commit()
AbstractTransactionPolicyITransactionalOperation that performs all
manipulations applied by the policy since the last AbstractTransactionPolicy.init() call.
When called multiple times in sequence, only the first call will yield an
operation, the subsequent calls will yield null.commit in class AbstractTransformPolicy<javafx.scene.Node>ITransactionalOperation that performs all
manipulations applied by the policy since the last
AbstractTransactionPolicy.init() call.protected java.util.List<java.lang.Integer> getIndicesOfMovableAnchors()
List of Integers specifying the anchors to
relocate.public void init()
AbstractTransactionPolicyIllegalStateException. It is safe to call AbstractTransactionPolicy.init()
multiple times in sequence.init in class AbstractTransformPolicy<javafx.scene.Node>Copyright (c) 2014 itemis AG and others. All rights reserved.