public abstract class AbstractLayoutBehavior extends AbstractBehavior
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.active, adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
ACTIVE_PROPERTY
Constructor and Description |
---|
AbstractLayoutBehavior() |
Modifier and Type | Method and Description |
---|---|
protected void |
doActivate() |
protected void |
doDeactivate() |
protected abstract LayoutContext |
getLayoutContext()
Returns the
LayoutContext for which preLayout() and
postLayout() shall be called before or after a layout pass,
respectively. |
protected void |
layoutLabels()
Called after a layout pass to adjust label positions.
|
protected abstract void |
postLayout()
Called after a layout pass.
|
protected abstract void |
preLayout()
Called before a layout pass.
|
activate, activeProperty, adaptableProperty, addAnchoreds, addAnchoreds, addFeedback, addFeedback, addHandles, addHandles, clearFeedback, clearHandles, deactivate, getAdaptable, getFeedback, getFeedback, getFeedbackPartFactory, getFeedbackPartFactory, getFeedbackPerTargetSet, getHandlePartFactory, getHandlePartFactory, getHandles, getHandles, getHandlesPerTargetSet, getHost, hasFeedback, hasFeedback, hasHandles, hasHandles, isActive, removeAnchoreds, removeFeedback, removeFeedback, removeFeedback, removeHandles, removeHandles, removeHandles, setAdaptable, updateHandles, updateHandles
protected void doActivate()
doActivate
in class AbstractBehavior
protected void doDeactivate()
doDeactivate
in class AbstractBehavior
protected abstract LayoutContext getLayoutContext()
LayoutContext
for which preLayout()
and
postLayout()
shall be called before or after a layout pass,
respectively.LayoutContext
for which preLayout()
and
postLayout()
shall be called before or after a layout
pass, respectively.protected void layoutLabels()
protected abstract void postLayout()
protected abstract void preLayout()
Copyright (c) 2014 itemis AG and others. All rights reserved.