public class NodeLayoutBehavior extends AbstractLayoutBehavior
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Class<FXResizeRelocatePolicy> |
RESIZE_RELOCATE_POLICY_KEY
The class key that is used to retrieve the
FXResizeRelocatePolicy
that is installed on a NodeContentPart. |
pcsACTIVE_PROPERTY| Constructor and Description |
|---|
NodeLayoutBehavior()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
adaptLayoutInformation()
Reads the location and size of its host
NodeContentPart from the
layout model and updates the visualization accordingly. |
protected GraphLayoutContext |
getGraphLayoutContext()
Returns the
GraphLayoutContext for which AbstractLayoutBehavior.preLayout() and
AbstractLayoutBehavior.postLayout() shall be called before or after a layout pass,
respectively. |
NodeContentPart |
getHost() |
protected GraphNodeLayout |
getNodeLayout()
Returns the
GraphNodeLayout that corresponds to the
NodeContentPart on which this NodeLayoutBehavior is
installed. |
protected void |
postLayout()
Called after a layout pass.
|
protected void |
preLayout()
Called before a layout pass.
|
void |
provideLayoutInformation()
Writes the location and size of its host
NodeContentPart into the
layout model. |
deactivateaddFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopespublic static java.lang.Class<FXResizeRelocatePolicy> RESIZE_RELOCATE_POLICY_KEY
FXResizeRelocatePolicy
that is installed on a NodeContentPart.public void activate()
activate in interface IActivatableactivate in class AbstractLayoutBehaviorpublic void adaptLayoutInformation()
NodeContentPart from the
layout model and updates the visualization accordingly.protected GraphLayoutContext getGraphLayoutContext()
AbstractLayoutBehaviorGraphLayoutContext for which AbstractLayoutBehavior.preLayout() and
AbstractLayoutBehavior.postLayout() shall be called before or after a layout pass,
respectively.getGraphLayoutContext in class AbstractLayoutBehaviorGraphLayoutContext for which AbstractLayoutBehavior.preLayout() and
AbstractLayoutBehavior.postLayout() shall be called before or after a layout
pass, respectively.public NodeContentPart getHost()
getHost in interface IBehavior<javafx.scene.Node>getHost in class AbstractBehavior<javafx.scene.Node>protected GraphNodeLayout getNodeLayout()
GraphNodeLayout that corresponds to the
NodeContentPart on which this NodeLayoutBehavior is
installed.GraphNodeLayout that corresponds to the
NodeContentPart on which this NodeLayoutBehavior
is installed.protected void postLayout()
AbstractLayoutBehaviorpostLayout in class AbstractLayoutBehaviorprotected void preLayout()
AbstractLayoutBehaviorpreLayout in class AbstractLayoutBehaviorpublic void provideLayoutInformation()
NodeContentPart into the
layout model.Copyright (c) 2014 itemis AG and others. All rights reserved.