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 ). |
org.eclipse.gef4.layout.algorithms |
This package provides different implementations of concrete layout
algorithms.
|
Modifier and Type | Method and Description |
---|---|
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 |
IEdgeLayout.getSource() |
INodeLayout[] |
INodeLayout.getSuccessingNodes()
Returns all nodes that are direct successors of this node.
|
INodeLayout |
IEdgeLayout.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. |
IEdgeLayout[] |
ILayoutContext.getConnections(INodeLayout layoutEntity1,
INodeLayout layoutEntity2)
Returns all the connections between given source and target entities.
|
IEdgeLayout[] |
AbstractLayoutContext.getConnections(INodeLayout layoutEntity1,
INodeLayout layoutEntity2) |
static Point |
LayoutProperties.getLocation(INodeLayout node)
Returns the value of the
LayoutProperties.LOCATION_PROPERTY of the given
INodeLayout . |
static java.lang.Double |
LayoutProperties.getPreferredAspectRatio(INodeLayout node)
Returns the value of the
LayoutProperties.ASPECT_RATIO_PROPERTY of the given
INodeLayout . |
static Dimension |
LayoutProperties.getSize(INodeLayout node)
Returns the value of the
LayoutProperties.SIZE_PROPERTY of the given
INodeLayout . |
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.isMovable(INodeLayout node)
Returns the value of the
LayoutProperties.MOVABLE_PROPERTY of the given
INodeLayout . |
static java.lang.Boolean |
LayoutProperties.isResizable(INodeLayout node)
Returns the value of the
LayoutProperties.RESIZABLE_PROPERTY of the given
INodeLayout . |
protected void |
AbstractLayoutContext.removeNode(INodeLayout node)
Removes the given
INodeLayout from the managed list of nodes and
fires a corresponding node-removed-event. |
static void |
LayoutProperties.setLocation(INodeLayout node,
double x,
double y)
Sets the value of the
LayoutProperties.LOCATION_PROPERTY of the given
INodeLayout to the given value. |
static void |
LayoutProperties.setResizable(INodeLayout node,
boolean resizable)
Sets the value of the
LayoutProperties.RESIZABLE_PROPERTY of the given
INodeLayout to the given value. |
static void |
LayoutProperties.setSize(INodeLayout node,
double w,
double h)
Sets the value of the
LayoutProperties.SIZE_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 . |
TreeLayoutObserver.TreeNode |
TreeLayoutObserver.TreeNodeFactory.createTreeNode(INodeLayout nodeLayout,
TreeLayoutObserver observer)
|
TreeLayoutObserver.TreeNode |
TreeLayoutObserver.getTreeNode(INodeLayout node)
Returns a
TreeLayoutObserver.TreeNode related to given node layout. |
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
|
Copyright (c) 2014 itemis AG and others. All rights reserved.