public abstract class AbstractLayoutBehavior extends AbstractBehavior<javafx.scene.Node>
AbstractLayoutBehavior
is an abstract behavior that schedules
preLayout()
and postLayout()
to be called before or after a
layout pass, respectively. The preLayout()
method can be used to
write layout information into the layout model. Similarly, the
postLayout()
method can be used to read layout information from the
layout model.pcs
ACTIVE_PROPERTY
Constructor and Description |
---|
AbstractLayoutBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
deactivate() |
protected abstract GraphLayoutContext |
getGraphLayoutContext()
Returns the
GraphLayoutContext for which preLayout() and
postLayout() shall be called before or after a layout pass,
respectively. |
protected abstract void |
postLayout()
Called after a layout pass.
|
protected abstract void |
preLayout()
Called before a layout pass.
|
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, getHost, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopes
public void activate()
activate
in interface IActivatable
activate
in class AbstractBehavior<javafx.scene.Node>
public void deactivate()
deactivate
in interface IActivatable
deactivate
in class AbstractBehavior<javafx.scene.Node>
protected abstract GraphLayoutContext getGraphLayoutContext()
GraphLayoutContext
for which preLayout()
and
postLayout()
shall be called before or after a layout pass,
respectively.GraphLayoutContext
for which preLayout()
and
postLayout()
shall be called before or after a layout
pass, respectively.protected abstract void postLayout()
protected abstract void preLayout()
Copyright (c) 2014 itemis AG and others. All rights reserved.