Package | Description |
---|---|
org.eclipse.gef4.layout |
This package provides an interface-based facade to exchange layout
information with layout algorithms (within this package), concrete
implementations of layout algorithms (
org.eclipse.gef4.layout.algorithms ), as well as listeners to hook
into the layout computation (org.eclipse.gef4.layout.listeners ). |
org.eclipse.gef4.layout.algorithms |
This package provides different implementations of concrete layout
algorithms.
|
org.eclipse.gef4.layout.listeners |
This package contains interfaces for various listeners which can be
registered on an
ILayoutContext , as well as a
support class which can handle the listener (un-)registration and firing of
events. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractLayoutContext
The
AbstractLayoutContext is an abstract ILayoutContext
implementation which supports the (un-)registration of
PropertyChangeListener s and firing of events, the (un-)registration
of any layout listeners and firing of events, the handling and execution of
pre and post Runnable s, and filtering of layout objects using
ILayoutFilter . |
Modifier and Type | Method and Description |
---|---|
ILayoutContext |
ILayoutAlgorithm.getLayoutContext()
Returns the previously set
ILayoutContext . |
Modifier and Type | Method and Description |
---|---|
static Rectangle |
LayoutProperties.getBounds(ILayoutContext graph)
Returns the value of the
LayoutProperties.BOUNDS_PROPERTY of the given
ILayoutContext . |
static java.lang.Boolean |
LayoutProperties.isBoundsExpandable(ILayoutContext graph)
Returns the value of the
LayoutProperties.BOUNDS_EXPANDABLE_PROPERTY of the given
ILayoutContext . |
static java.lang.Boolean |
LayoutProperties.isDynamicLayoutEnables(ILayoutContext graph)
Returns the value of the
LayoutProperties.DYNAMIC_LAYOUT_ENABLED_PROPERTY of the
given ILayoutContext . |
static void |
LayoutProperties.setBounds(ILayoutContext graph,
Rectangle bounds)
Sets the value of the
LayoutProperties.BOUNDS_PROPERTY of the given
ILayoutContext to the given value. |
static void |
LayoutProperties.setBoundsExpandable(ILayoutContext graph,
boolean boundsExpandable)
Sets the value of the
LayoutProperties.BOUNDS_EXPANDABLE_PROPERTY of the given
ILayoutContext to the given value. |
static void |
LayoutProperties.setDynamicLayoutEnabled(ILayoutContext graph,
boolean dynamicLayoutEnabled)
Sets the value of the
LayoutProperties.DYNAMIC_LAYOUT_ENABLED_PROPERTY of the
given ILayoutContext to the given value. |
void |
ILayoutAlgorithm.setLayoutContext(ILayoutContext context)
Sets the layout context for this algorithm.
|
Modifier and Type | Method and Description |
---|---|
ILayoutContext |
GridLayoutAlgorithm.getLayoutContext() |
ILayoutContext |
SugiyamaLayoutAlgorithm.getLayoutContext() |
ILayoutContext |
SpaceTreeLayoutAlgorithm.getLayoutContext() |
ILayoutContext |
SpringLayoutAlgorithm.getLayoutContext() |
ILayoutContext |
RadialLayoutAlgorithm.getLayoutContext() |
ILayoutContext |
HorizontalShiftAlgorithm.getLayoutContext() |
ILayoutContext |
CompositeLayoutAlgorithm.getLayoutContext() |
ILayoutContext |
TreeLayoutAlgorithm.getLayoutContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
SpaceTreeLayoutAlgorithm.ExpandCollapseManager.canCollapse(ILayoutContext context,
INodeLayout node)
Checks if given node can be collapsed.
|
boolean |
SpaceTreeLayoutAlgorithm.ExpandCollapseManager.canExpand(ILayoutContext context,
INodeLayout node)
Checks if given node can be expanded.
|
void |
SpaceTreeLayoutAlgorithm.ExpandCollapseManager.initExpansion(ILayoutContext context)
Initializes the expansion state of all nodes in given layout context.
|
void |
SpaceTreeLayoutAlgorithm.ExpandCollapseManager.setExpanded(ILayoutContext context,
INodeLayout node,
boolean expanded)
Changes the expanded state of given node.
|
void |
GridLayoutAlgorithm.setLayoutContext(ILayoutContext context) |
void |
SugiyamaLayoutAlgorithm.setLayoutContext(ILayoutContext context) |
void |
SpaceTreeLayoutAlgorithm.setLayoutContext(ILayoutContext context) |
void |
SpringLayoutAlgorithm.setLayoutContext(ILayoutContext context) |
void |
RadialLayoutAlgorithm.setLayoutContext(ILayoutContext context) |
void |
HorizontalShiftAlgorithm.setLayoutContext(ILayoutContext context) |
void |
CompositeLayoutAlgorithm.setLayoutContext(ILayoutContext context) |
void |
TreeLayoutAlgorithm.setLayoutContext(ILayoutContext context) |
Constructor and Description |
---|
TreeLayoutObserver(ILayoutContext context,
TreeLayoutObserver.TreeNodeFactory nodeFactory)
Constructs a new
TreeLayoutObserver for observing the given
ILayoutContext . |
Modifier and Type | Method and Description |
---|---|
void |
IContextListener.backgroundEnableChanged(ILayoutContext context)
This method is called whenever background layout is enabled or disabled
in a layout context.
|
void |
IContextListener.Stub.backgroundEnableChanged(ILayoutContext context) |
boolean |
IContextListener.boundsChanged(ILayoutContext context)
This method is called whenever the bounds available in a layout context
change.
|
boolean |
IContextListener.Stub.boundsChanged(ILayoutContext context) |
boolean |
IGraphStructureListener.connectionAdded(ILayoutContext context,
IConnectionLayout connection)
This method is called whenever a connection is added to a context.
|
boolean |
IGraphStructureListener.Stub.connectionAdded(ILayoutContext context,
IConnectionLayout connection) |
boolean |
IGraphStructureListener.connectionRemoved(ILayoutContext context,
IConnectionLayout connection)
This method is called whenever a connection is removed from a context.
|
boolean |
IGraphStructureListener.Stub.connectionRemoved(ILayoutContext context,
IConnectionLayout connection) |
boolean |
IGraphStructureListener.nodeAdded(ILayoutContext context,
INodeLayout node)
This method is called whenever a node is added to a context.
|
boolean |
IGraphStructureListener.Stub.nodeAdded(ILayoutContext context,
INodeLayout node) |
boolean |
ILayoutListener.nodeMoved(ILayoutContext context,
INodeLayout node)
This method is called whenever location of a particular node is changed
within observed context.
|
boolean |
IGraphStructureListener.nodeRemoved(ILayoutContext context,
INodeLayout node)
This method is called whenever a node is removed from a context.
|
boolean |
IGraphStructureListener.Stub.nodeRemoved(ILayoutContext context,
INodeLayout node) |
boolean |
ILayoutListener.nodeResized(ILayoutContext context,
INodeLayout node)
This method is called whenever size of a particular node is changed
within observed context.
|
boolean |
IPruningListener.nodesPruned(ILayoutContext context,
ISubgraphLayout[] subgraph)
This method is called when some nodes are pruned in a layout context.
|
boolean |
IPruningListener.nodesUnpruned(ILayoutContext context,
INodeLayout[] nodes)
This method is called when some nodes are unpruned in a layout context,
that is they are no longer part of a subgraph.
|
boolean |
IContextListener.pruningEnablementChanged(ILayoutContext context)
This method is called whenever graph pruning is enabled or disabled in a
layout context.
|
boolean |
IContextListener.Stub.pruningEnablementChanged(ILayoutContext context) |
boolean |
ILayoutListener.subgraphMoved(ILayoutContext context,
ISubgraphLayout subgraph)
This method is called whenever location of a particular subgraph is
changed within observed context.
|
boolean |
ILayoutListener.subgraphResized(ILayoutContext context,
ISubgraphLayout subgraph)
This method is called whenever size of a particular subgraph is changed
within observed context.
|
Constructor and Description |
---|
LayoutListenerSupport(ILayoutContext context)
Constructs a new
LayoutListenerSupport for the given
ILayoutContext . |
Copyright (c) 2014 itemis AG and others. All rights reserved.