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.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 |
---|---|
ISubgraphLayout |
ILayoutContext.createSubgraph(INodeLayout[] nodes)
Creates a subgraph containing given nodes and adds it to this context.
|
ISubgraphLayout |
INodeLayout.getSubgraph() |
ISubgraphLayout[] |
ILayoutContext.getSubgraphs()
Returns all the subgraphs this context's nodes were pruned to.
|
ISubgraphLayout[] |
AbstractLayoutContext.getSubgraphs() |
Modifier and Type | Method and Description |
---|---|
void |
ILayoutContext.fireSubgraphMovedEvent(ISubgraphLayout subgraph)
Notifies all previously registered
ILayoutListener s about the
moved subgraph. |
void |
AbstractLayoutContext.fireSubgraphMovedEvent(ISubgraphLayout subgraph) |
void |
ILayoutContext.fireSubgraphResizedEvent(ISubgraphLayout subgraph)
Notifies all previously registered
ILayoutListener s about the
resized subgraph. |
void |
AbstractLayoutContext.fireSubgraphResizedEvent(ISubgraphLayout subgraph) |
static java.lang.Integer |
LayoutProperties.getDirection(ISubgraphLayout subgraph)
Returns the value of the
LayoutProperties.DIRECTION_PROPERTY of the given
ISubgraphLayout . |
static java.lang.Boolean |
LayoutProperties.isDirectionDependant(ISubgraphLayout subgraph)
Returns the value of the
LayoutProperties.DIRECTION_DEPENDANT_PROPERTY of the
given ISubgraphLayout . |
void |
INodeLayout.prune(ISubgraphLayout subgraph)
Assigns this NodeLayout to the given SubgraphLayout.
|
static void |
LayoutProperties.setDirection(ISubgraphLayout subgraph,
int direction)
Sets the value of the
LayoutProperties.DIRECTION_PROPERTY of the given
ISubgraphLayout to the given value. |
static void |
LayoutProperties.setDirectionDependant(ISubgraphLayout subgraph,
boolean isDirectionDependant)
Sets the value of the
LayoutProperties.DIRECTION_DEPENDANT_PROPERTY of the given
ISubgraphLayout to the given value. |
Modifier and Type | Method and Description |
---|---|
void |
LayoutListenerSupport.fireSubgraphMovedEvent(ISubgraphLayout subgraph)
Notifies all
ILayoutListener s via
ILayoutListener.subgraphMoved(ILayoutContext, ISubgraphLayout) . |
void |
LayoutListenerSupport.fireSubgraphResizedEvent(ISubgraphLayout subgraph)
Notifies all
ILayoutListener s via
ILayoutListener.subgraphResized(ILayoutContext, ISubgraphLayout)
. |
boolean |
IPruningListener.nodesPruned(ILayoutContext context,
ISubgraphLayout[] subgraph)
This method is called when some nodes are pruned in a layout 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.
|
Copyright (c) 2014 itemis AG and others. All rights reserved.