public class FXResizeConnectionPolicy extends FXResizePolicy
FXResizeConnectionPolicy is a specialization of the
FXResizePolicy that performs a resize of an FXConnection
visual by proportionally relocating its bend points.ITransactional.NoOperation, ITransactional.UnexecutableOperationinitialized, resizeAndRevealOperation, resizeOperationNOOP, UNEXECUTABLE| 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 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.
|
void |
performResize(double dw,
double dh)
Resizes the
visual by the given delta width
and delta height. |
getInitialSize, getMinimumHeight, getMinimumWidth, getVisualToResize, updateOperationcommit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptablepublic 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 FXResizePolicyITransactionalOperation 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 FXResizePolicypublic void performResize(double dw,
double dh)
FXResizePolicyvisual by the given delta width
and delta height.performResize in class FXResizePolicydw - The delta width.dh - The delta height.Copyright (c) 2014 itemis AG and others. All rights reserved.