public class FXResizeConnectionPolicy extends FXResizePolicy
FXResizeConnectionPolicy is a specialization of the
FXResizePolicy that performs a resize of an Connection visual
by proportionally relocating its bend points.| Constructor and Description |
|---|
FXResizeConnectionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
resize(double dw,
double dh)
Resizes the
visual by the given delta width
and delta height. |
createOperation, getMinimumHeight, getMinimumWidth, getResizeOperation, getSize, getVisualToResizecheckInitialized, getOperation, isInitialized, locallyExecuteOperation, rollbackgetAdaptable, getHost, setAdaptablepublic 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 FXResizePolicyITransactionalOperation 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 AbstractTransactionPolicy<javafx.scene.Node>public void resize(double dw,
double dh)
FXResizePolicyvisual by the given delta width
and delta height.resize in class FXResizePolicydw - The delta width.dh - The delta height.Copyright (c) 2014 itemis AG and others. All rights reserved.