public class FXResizePolicy extends AbstractTransactionPolicy<javafx.scene.Node>
| Constructor and Description |
|---|
FXResizePolicy() |
| 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 ITransactionalOperation |
createOperation()
Creates an
ITransactionalOperation that is used to encapsulate
the changes that are applied by this AbstractTransactionPolicy
through its "work" methods. |
protected double |
getMinimumHeight()
Returns the minimum height.
|
protected double |
getMinimumWidth()
Returns the minimum width.
|
protected FXResizeNodeOperation |
getResizeOperation()
Returns the
FXResizeNodeOperation that is used by this
FXResizePolicy. |
protected Dimension |
getSize(javafx.scene.Node visualToResize)
Returns the current size of the passed-in
Node, i.e. the width
and height of its layout-bounds. |
protected javafx.scene.Node |
getVisualToResize()
Returns the
Node that should be resized. |
void |
resize(double dw,
double dh)
Resizes the
visual by the given delta width
and delta height. |
checkInitialized, getOperation, init, 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 AbstractTransactionPolicy<javafx.scene.Node>ITransactionalOperation that performs all
manipulations applied by the policy since the last
AbstractTransactionPolicy.init() call.protected ITransactionalOperation createOperation()
AbstractTransactionPolicyITransactionalOperation that is used to encapsulate
the changes that are applied by this AbstractTransactionPolicy
through its "work" methods. The created operation should allow for
local execution at each time.createOperation in class AbstractTransactionPolicy<javafx.scene.Node>ITransactionalOperation to encapsulate all applied
changes.protected double getMinimumHeight()
Node cannot be
changed below this limit.protected double getMinimumWidth()
Node cannot be changed
below this limit.protected FXResizeNodeOperation getResizeOperation()
FXResizeNodeOperation that is used by this
FXResizePolicy.FXResizeNodeOperation nested within the
ITransactionalOperation used by this
AbstractTransactionPolicy.protected Dimension getSize(javafx.scene.Node visualToResize)
Node, i.e. the width
and height of its layout-bounds.visualToResize - The Node for which to return the current size.Node.protected javafx.scene.Node getVisualToResize()
Node that should be resized. Per default, this is the
host's visual.Node that should be resized.public void resize(double dw,
double dh)
visual by the given delta width
and delta height.dw - The delta width.dh - The delta height.Copyright (c) 2014 itemis AG and others. All rights reserved.