public class FXResizePolicy extends AbstractResizePolicy<javafx.scene.Node>
adaptableIAdaptable.Bound.Impl<T extends IAdaptable>| Constructor and Description |
|---|
FXResizePolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected ITransactionalOperation |
createOperation()
Creates an
ITransactionalOperation that is used to encapsulate
the changes that are applied by this AbstractTransactionPolicy
through its "work" methods. |
protected Dimension |
getCurrentSize()
Returns the current size of the
IResizableContentPart. |
protected double |
getMinimumHeight()
Returns the minimum height.
|
protected double |
getMinimumWidth()
Returns the minimum width.
|
protected FXResizeOperation |
getResizeOperation()
Returns the
FXResizeOperation that is used by this
FXResizePolicy. |
protected javafx.scene.Node |
getVisualToResize()
Returns the
Node that should be resized. |
protected void |
updateResizeOperation(double dw,
double dh)
Update the resize operation to the new final dh and dw values.
|
applySize, commit, createResizeContentOperation, getInitialSize, init, isContentResizable, resizecheckInitialized, getOperation, isInitialized, locallyExecuteOperation, rollbackadaptableProperty, getAdaptable, getHost, setAdaptableprotected 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 Dimension getCurrentSize()
AbstractResizePolicyIResizableContentPart.getCurrentSize in class AbstractResizePolicy<javafx.scene.Node>protected double getMinimumHeight()
Node cannot be
changed below this limit.protected double getMinimumWidth()
Node cannot be changed
below this limit.protected FXResizeOperation getResizeOperation()
FXResizeOperation that is used by this
FXResizePolicy.FXResizeOperation used by this
AbstractTransactionPolicy.protected javafx.scene.Node getVisualToResize()
Node that should be resized. Per default, this is the
host's visual.Node that should be resized.protected void updateResizeOperation(double dw,
double dh)
AbstractResizePolicyupdateResizeOperation in class AbstractResizePolicy<javafx.scene.Node>dw - The new final width delta.dh - The new final height delta.Copyright (c) 2014 itemis AG and others. All rights reserved.