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 | Method and Description |
---|---|
INodeLayout[] |
ISubgraphLayout.getNodes()
Returns all the nodes belonging to this subgraph.
|
INodeLayout[] |
ILayoutContext.getNodes()
Returns all the nodes that should be laid out.
|
INodeLayout[] |
AbstractLayoutContext.getNodes() |
INodeLayout[] |
INodeLayout.getPredecessingNodes()
Returns all nodes that are direct predecessors of this node.
|
INodeLayout |
IConnectionLayout.getSource() |
INodeLayout[] |
INodeLayout.getSuccessingNodes()
Returns all nodes that are direct successors of this node.
|
INodeLayout |
IConnectionLayout.getTarget() |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractLayoutContext.addNode(INodeLayout node)
Adds the given
INodeLayout to the list of nodes and fires a
corresponding node-added-event. |
void |
ISubgraphLayout.addNodes(INodeLayout[] nodes)
Adds nodes to this subgraph.
|
ISubgraphLayout |
ILayoutContext.createSubgraph(INodeLayout[] nodes)
Creates a subgraph containing given nodes and adds it to this context.
|
void |
ILayoutContext.fireNodeAddedEvent(INodeLayout node)
Notifies all previously registered
IGraphStructureListener s about
the newly added node. |
void |
AbstractLayoutContext.fireNodeAddedEvent(INodeLayout node) |
void |
ILayoutContext.fireNodeMovedEvent(INodeLayout node)
Notifies all previously registered
ILayoutListener s about the
moved node. |
void |
AbstractLayoutContext.fireNodeMovedEvent(INodeLayout node) |
void |
ILayoutContext.fireNodeRemovedEvent(INodeLayout node)
Notifies all previously registered
IGraphStructureListener s about
the removed node. |
void |
AbstractLayoutContext.fireNodeRemovedEvent(INodeLayout node) |
void |
ILayoutContext.fireNodeResizedEvent(INodeLayout node)
Notifies all previously registered
ILayoutListener s about the
resized node. |
void |
AbstractLayoutContext.fireNodeResizedEvent(INodeLayout node) |
boolean |
ILayoutFilter.isLayoutIrrelevant(INodeLayout nodeLayout)
Returns
true to indicate that the given INodeLayout
is irrelevant for layout. |
boolean |
ILayoutContext.isLayoutIrrelevant(INodeLayout nodeLayout)
Returns
true when the given INodeLayout is not
relevant for layout according to the configured layout filters . |
boolean |
AbstractLayoutContext.isLayoutIrrelevant(INodeLayout nodeLayout) |
static java.lang.Boolean |
LayoutProperties.isMinimized(INodeLayout node)
Returns the value of the
LayoutProperties.MINIMIZED_PROPERTY of the given
INodeLayout . |
static java.lang.Boolean |
LayoutProperties.isPrunable(INodeLayout node)
Returns the value of the
LayoutProperties.PRUNABLE_PROPERTY of the given
INodeLayout . |
static java.lang.Boolean |
LayoutProperties.isPruned(INodeLayout node)
Returns
true if the given INodeLayout is pruned to
an ISubgraphLayout , i.e. its getSubgraph()
method does not return null . |
protected void |
AbstractLayoutContext.removeNode(INodeLayout node)
Removes the given
INodeLayout from the managed list of nodes and
fires a corresponding node-removed-event. |
void |
ISubgraphLayout.removeNodes(INodeLayout[] nodes)
Removes nodes from this subgraph.
|
static void |
LayoutProperties.setMinimized(INodeLayout node,
boolean minimized)
Sets the value of the
LayoutProperties.MINIMIZED_PROPERTY of the given
INodeLayout to the given value. |
static void |
LayoutProperties.setPrunable(INodeLayout node,
boolean prunable)
Sets the value of the
LayoutProperties.PRUNABLE_PROPERTY of the given
INodeLayout to the given value. |
Modifier and Type | Field and Description |
---|---|
protected INodeLayout |
TreeLayoutObserver.TreeNode.node
The wrapped
INodeLayout . |
Modifier and Type | Method and Description |
---|---|
INodeLayout |
TreeLayoutObserver.TreeNode.getNode() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<INodeLayout,java.lang.Integer> |
SugiyamaLayoutAlgorithm.DFSLayerProvider.getAssignedNodes()
Returns a
Map that stores the assignment of layers to
INodeLayout s. |
java.util.ArrayList<INodeLayout> |
SugiyamaLayoutAlgorithm.DFSLayerProvider.getRoots(java.util.List<INodeLayout> nodes)
Finds the root elements in the list of nodes based on their
connections.
|
Modifier and Type | Method and Description |
---|---|
void |
SugiyamaLayoutAlgorithm.DFSLayerProvider.addAssignedNode(INodeLayout node,
int layer)
Assigns the given layer to the given
INodeLayout . |
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.
|
TreeLayoutObserver.TreeNode |
TreeLayoutObserver.TreeNodeFactory.createTreeNode(INodeLayout nodeLayout,
TreeLayoutObserver observer)
|
TreeLayoutObserver.TreeNode |
TreeLayoutObserver.getTreeNode(INodeLayout node)
Returns a
TreeLayoutObserver.TreeNode related to given node layout. |
void |
SpaceTreeLayoutAlgorithm.ExpandCollapseManager.setExpanded(ILayoutContext context,
INodeLayout node,
boolean expanded)
Changes the expanded state of given node.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.List<SugiyamaLayoutAlgorithm.NodeWrapper>> |
SugiyamaLayoutAlgorithm.LayerProvider.calculateLayers(java.util.List<INodeLayout> nodes)
Creating layers of the nodes and makes it possible to assign layers
to those nodes.
|
java.util.List<java.util.List<SugiyamaLayoutAlgorithm.NodeWrapper>> |
SugiyamaLayoutAlgorithm.DFSLayerProvider.calculateLayers(java.util.List<INodeLayout> nodeLayouts) |
java.util.List<java.util.List<SugiyamaLayoutAlgorithm.NodeWrapper>> |
SugiyamaLayoutAlgorithm.SimpleLayerProvider.calculateLayers(java.util.List<INodeLayout> nodes) |
java.util.ArrayList<INodeLayout> |
SugiyamaLayoutAlgorithm.DFSLayerProvider.getRoots(java.util.List<INodeLayout> nodes)
Finds the root elements in the list of nodes based on their
connections.
|
Constructor and Description |
---|
TreeNode(INodeLayout node,
TreeLayoutObserver owner)
Creates a tree node related to given layout node
|
Modifier and Type | Method and Description |
---|---|
void |
LayoutListenerSupport.fireNodeAddedEvent(INodeLayout node)
|
void |
LayoutListenerSupport.fireNodeMovedEvent(INodeLayout node)
Notifies all
ILayoutListener s via
ILayoutListener.nodeMoved(ILayoutContext, INodeLayout) . |
void |
LayoutListenerSupport.fireNodeRemovedEvent(INodeLayout node)
|
void |
LayoutListenerSupport.fireNodeResizedEvent(INodeLayout node)
Notifies all
ILayoutListener s via
ILayoutListener.nodeResized(ILayoutContext, INodeLayout) . |
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.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.
|
Copyright (c) 2014 itemis AG and others. All rights reserved.