public class FXTransformConnectionPolicy extends FXTransformPolicy
FXTransformConnectionPolicy is an FXTransformPolicy that
is adjusted for the relocation of an FXConnection. It uses an
FXBendOperation to update the anchors of the FXConnection
according to the applied translation.ITransactional.NoOperation, ITransactional.UnexecutableOperationinitialized, initialNodeTransform, postTransforms, preTransforms, TRANSFORMATION_PROVIDER_ROLE, transformOperationNOOP, UNEXECUTABLE| 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 ITransactional.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.
|
createPostRotate, createPostScale, createPostTransform, createPreTransform, getInitialNodeTransform, getNodeTransform, getSnapToGridOffset, reset, setPostRotate, setPostScale, setPostTransform, setPostTranslate, setPostTranslateInScene, setPreRotate, setPreScale, setPreTransform, setPreTranslate, setTransform, updateTransformcommit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptablepublic void applyTransform(AffineTransform newTransform)
FXTransformPolicyAffineTransform 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 FXTransformPolicynewTransform - The new transformation matrix for the host.public ITransactionalOperation commit()
ITransactionalITransactionalOperation that performs all
manipulations applied by the policy since the last ITransactional.init() call.
When called multiple times in sequence, only the first call will yield an
operation, the subsequent calls will yield null.
You can return ITransactional.NOOP if no changes have to be applied. The domain
will filter out all ITransactional.NOOPs before their execution.
You can return ITransactional.UNEXECUTABLE to prevent any composite operation
that contains the ITransactional.UNEXECUTABLE from execution.
commit in interface ITransactionalcommit in class FXTransformPolicyITransactionalOperation that performs all
manipulations applied by the policy since the last
ITransactional.init() call.protected java.util.List<java.lang.Integer> getIndicesOfMovableAnchors()
List of Integers specifying the anchors to
relocate.public void init()
ITransactionalIllegalStateException. It is safe to call ITransactional.init()
multiple times in sequence.init in interface ITransactionalinit in class FXTransformPolicyCopyright (c) 2014 itemis AG and others. All rights reserved.