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 |
---|---|
IConnectionLayout[] |
ILayoutContext.getConnections()
Returns all the connections between nodes that should be laid out.
|
IConnectionLayout[] |
AbstractLayoutContext.getConnections() |
IConnectionLayout[] |
ILayoutContext.getConnections(IEntityLayout layoutEntity1,
IEntityLayout layoutEntity2)
Returns all the connections between given source and target entities.
|
IConnectionLayout[] |
AbstractLayoutContext.getConnections(IEntityLayout layoutEntity1,
IEntityLayout layoutEntity2) |
IConnectionLayout[] |
INodeLayout.getIncomingConnections()
Returns all connections that have this node as a target.
|
IConnectionLayout[] |
INodeLayout.getOutgoingConnections()
Returns all connections that have this node as a source.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractLayoutContext.addEdge(IConnectionLayout edge)
Adds the given
IConnectionLayout to the list of edges and fires a
corresponding connection-added-event. |
void |
ILayoutContext.fireConnectionAddedEvent(IConnectionLayout connection)
Notifies all previously registered
IGraphStructureListener s about
the newly added connection. |
void |
AbstractLayoutContext.fireConnectionAddedEvent(IConnectionLayout connection) |
void |
ILayoutContext.fireConnectionRemovedEvent(IConnectionLayout connection)
Notifies all previously registered
IGraphStructureListener s about
the removed connection. |
void |
AbstractLayoutContext.fireConnectionRemovedEvent(IConnectionLayout connection) |
static java.lang.Double |
LayoutProperties.getWeight(IConnectionLayout edge)
Returns the value of the
LayoutProperties.WEIGHT_PROPERTY of the given
IConnectionLayout . |
static java.lang.Boolean |
LayoutProperties.isDirected(IConnectionLayout edge)
Returns the value of the
LayoutProperties.DIRECTED_PROPERTY of the given
IConnectionLayout . |
boolean |
ILayoutFilter.isLayoutIrrelevant(IConnectionLayout connectionLayout)
Returns
true to indicate that the given
IConnectionLayout is irrelevant for layout. |
boolean |
ILayoutContext.isLayoutIrrelevant(IConnectionLayout connLayout)
Returns
true when the given IConnectionLayout is not
relevant for layout according to the configured layout filters . |
boolean |
AbstractLayoutContext.isLayoutIrrelevant(IConnectionLayout connLayout) |
static java.lang.Boolean |
LayoutProperties.isVisible(IConnectionLayout edge)
Returns the value of the
LayoutProperties.VISIBLE_PROPERTY of the given
IConnectionLayout . |
protected void |
AbstractLayoutContext.removeEdge(IConnectionLayout edge)
Removes the given
IConnectionLayout from the list of edges and
fires a corresponding connection-removed-event. |
static void |
LayoutProperties.setDirected(IConnectionLayout edge,
boolean directed)
Sets the value of the
LayoutProperties.DIRECTED_PROPERTY of the given
IConnectionLayout to the given value. |
static void |
LayoutProperties.setVisible(IConnectionLayout edge,
boolean visible)
Sets the value of the
LayoutProperties.VISIBLE_PROPERTY of the given
IConnectionLayout to the given value. |
static void |
LayoutProperties.setWeight(IConnectionLayout edge,
double weight)
Sets the value of the
LayoutProperties.WEIGHT_PROPERTY of the given
IConnectionLayout to the given value. |
Modifier and Type | Method and Description |
---|---|
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) |
void |
LayoutListenerSupport.fireConnectionAddedEvent(IConnectionLayout connection)
|
void |
LayoutListenerSupport.fireConnectionRemovedEvent(IConnectionLayout connection)
|
Copyright (c) 2014 itemis AG and others. All rights reserved.