public class LayoutContextBehavior extends AbstractBehavior<javafx.scene.Node>
pcs
ACTIVE_PROPERTY
Constructor and Description |
---|
LayoutContextBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
protected void |
applyStaticLayout()
Performs one layout pass using the static layout algorithm that is
configured for the layout context.
|
void |
deactivate() |
GraphContentPart |
getHost() |
protected LayoutModel |
getLayoutModel() |
protected NodeContentPart |
getNestingPart() |
protected ViewportModel |
getViewportModel() |
protected void |
onHostPropertyChange(java.beans.PropertyChangeEvent evt) |
protected void |
onLayoutContextPropertyChange(java.beans.PropertyChangeEvent evt)
Re-layout when certain properties of the LayoutContext change:
static layout algorithm
layout bounds
|
protected void |
onNestingVisualLayoutBoundsChange(javafx.geometry.Bounds oldLayoutBounds,
javafx.geometry.Bounds newLayoutBounds)
Sets the layout bounds on the layout context for nested graphs.
|
protected void |
onViewportModelPropertyChange(java.beans.PropertyChangeEvent evt) |
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopes
public void activate()
activate
in interface IActivatable
activate
in class AbstractBehavior<javafx.scene.Node>
protected void applyStaticLayout()
public void deactivate()
deactivate
in interface IActivatable
deactivate
in class AbstractBehavior<javafx.scene.Node>
public GraphContentPart getHost()
getHost
in interface IBehavior<javafx.scene.Node>
getHost
in class AbstractBehavior<javafx.scene.Node>
protected LayoutModel getLayoutModel()
protected NodeContentPart getNestingPart()
protected ViewportModel getViewportModel()
protected void onHostPropertyChange(java.beans.PropertyChangeEvent evt)
protected void onLayoutContextPropertyChange(java.beans.PropertyChangeEvent evt)
evt
- A PropertyChangeEvent
that was fired by the layout
context.protected void onNestingVisualLayoutBoundsChange(javafx.geometry.Bounds oldLayoutBounds, javafx.geometry.Bounds newLayoutBounds)
oldLayoutBounds
- The previous nesting node's bounds.newLayoutBounds
- The current nesting node's bounds.protected void onViewportModelPropertyChange(java.beans.PropertyChangeEvent evt)
Copyright (c) 2014 itemis AG and others. All rights reserved.