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 . |
pcs
ACTIVE_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. |
deactivate
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopes
public static java.lang.Class<FXResizeRelocatePolicy> RESIZE_RELOCATE_POLICY_KEY
FXResizeRelocatePolicy
that is installed on a NodeContentPart
.public void activate()
activate
in interface IActivatable
activate
in class AbstractLayoutBehavior
public void adaptLayoutInformation()
NodeContentPart
from the
layout model and updates the visualization accordingly.protected GraphLayoutContext getGraphLayoutContext()
AbstractLayoutBehavior
GraphLayoutContext
for which AbstractLayoutBehavior.preLayout()
and
AbstractLayoutBehavior.postLayout()
shall be called before or after a layout pass,
respectively.getGraphLayoutContext
in class AbstractLayoutBehavior
GraphLayoutContext
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()
AbstractLayoutBehavior
postLayout
in class AbstractLayoutBehavior
protected void preLayout()
AbstractLayoutBehavior
preLayout
in class AbstractLayoutBehavior
public void provideLayoutInformation()
NodeContentPart
into the
layout model.Copyright (c) 2014 itemis AG and others. All rights reserved.