public class LayoutContextBehavior extends AbstractBehavior<javafx.scene.Node>
pcsACTIVE_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, switchAdaptableScopespublic void activate()
activate in interface IActivatableactivate in class AbstractBehavior<javafx.scene.Node>protected void applyStaticLayout()
public void deactivate()
deactivate in interface IActivatabledeactivate 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.