public abstract class AbstractLayoutBehavior extends AbstractBehavior<javafx.scene.Node>
AbstractLayoutBehavior
is an abstract behavior that schedules
provideToLayout()
and adaptFromLayout()
to be called before or
after a layout pass, respectively. The provideToLayout()
method can be
used to write layout information into the layout model. Similarly, the
adaptFromLayout()
method can be used to read layout information from
the layout model.active
ACTIVE_PROPERTY
Constructor and Description |
---|
AbstractLayoutBehavior() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
adaptFromLayout()
Called after a layout pass.
|
protected void |
doActivate() |
protected void |
doDeactivate() |
protected abstract GraphLayoutBehavior |
getGraphLayoutBehavior()
Returns the
GraphLayoutContext for which provideToLayout()
and adaptFromLayout() shall be called before or after a layout
pass, respectively. |
protected abstract void |
provideToLayout()
Called before a layout pass.
|
protected void |
updateLabels()
Called after all layout behaviors had the chance to adapt to the layout.
|
activate, activeProperty, addFeedback, addHandles, deactivate, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, setAdaptable, switchAdaptableScopes, updateHandles
protected abstract void adaptFromLayout()
protected void doActivate()
doActivate
in class AbstractBehavior<javafx.scene.Node>
protected void doDeactivate()
doDeactivate
in class AbstractBehavior<javafx.scene.Node>
protected abstract GraphLayoutBehavior getGraphLayoutBehavior()
GraphLayoutContext
for which provideToLayout()
and adaptFromLayout()
shall be called before or after a layout
pass, respectively.GraphLayoutContext
for which provideToLayout()
and adaptFromLayout()
shall be called before or after a
layout pass, respectively.protected abstract void provideToLayout()
protected void updateLabels()
Copyright (c) 2014 itemis AG and others. All rights reserved.