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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
INodeLayout
An
INodeLayout represents a node of a graph within the layout model. |
interface |
ISubgraphLayout
An interface for subgraphs in layout.
|
Modifier and Type | Method and Description |
---|---|
IEntityLayout[] |
ILayoutContext.getEntities()
Returns all entities that are currently placed on the graph, that is
subgraphs and unpruned nodes.
|
IEntityLayout[] |
IEntityLayout.getPredecessingEntities()
Returns all entities that are direct predecessors of this entity.
|
IEntityLayout[] |
IEntityLayout.getSuccessingEntities()
Returns all entities that are direct successors of this entity.
|
Modifier and Type | Method and Description |
---|---|
IConnectionLayout[] |
ILayoutContext.getConnections(IEntityLayout layoutEntity1,
IEntityLayout layoutEntity2)
Returns all the connections between given source and target entities.
|
IConnectionLayout[] |
AbstractLayoutContext.getConnections(IEntityLayout layoutEntity1,
IEntityLayout layoutEntity2) |
static Point |
LayoutProperties.getLocation(IEntityLayout entity)
Returns the value of the
LayoutProperties.LOCATION_PROPERTY of the given
IEntityLayout . |
static java.lang.Double |
LayoutProperties.getPreferredAspectRatio(IEntityLayout entity)
Returns the value of the
LayoutProperties.ASPECT_RATIO_PROPERTY of the given
IEntityLayout . |
static Dimension |
LayoutProperties.getSize(IEntityLayout entity)
Returns the value of the
LayoutProperties.SIZE_PROPERTY of the given
IEntityLayout . |
static java.lang.Boolean |
LayoutProperties.isMovable(IEntityLayout entity)
Returns the value of the
LayoutProperties.MOVABLE_PROPERTY of the given
IEntityLayout . |
static java.lang.Boolean |
LayoutProperties.isResizable(IEntityLayout entity)
Returns the value of the
LayoutProperties.RESIZABLE_PROPERTY of the given
IEntityLayout . |
static java.lang.Boolean |
LayoutProperties.isVisible(IEntityLayout entity)
Returns the value of the
LayoutProperties.VISIBLE_PROPERTY of the given
IEntityLayout . |
static void |
LayoutProperties.setLocation(IEntityLayout entity,
double x,
double y)
Sets the value of the
LayoutProperties.LOCATION_PROPERTY of the given
IEntityLayout to the given value. |
static void |
LayoutProperties.setResizable(IEntityLayout entity,
boolean resizable)
Sets the value of the
LayoutProperties.RESIZABLE_PROPERTY of the given
IEntityLayout to the given value. |
static void |
LayoutProperties.setSize(IEntityLayout entity,
double w,
double h)
Sets the value of the
LayoutProperties.SIZE_PROPERTY of the given
IEntityLayout to the given value. |
Modifier and Type | Method and Description |
---|---|
protected void |
GridLayoutAlgorithm.applyLayoutInternal(IEntityLayout[] entitiesToLayout,
Rectangle bounds)
Use this algorithm to layout the given entities and bounds.
|
static void |
AlgorithmHelper.fitWithinBounds(IEntityLayout[] entities,
Rectangle destinationBounds,
boolean resize)
Fits given entities within given bounds, preserving their relative
locations.
|
static Rectangle |
AlgorithmHelper.getLayoutBounds(IEntityLayout[] entities,
boolean includeNodeSize)
Find the bounds in which the nodes are located.
|
static Dimension |
AlgorithmHelper.getMinimumDistance(IEntityLayout[] entities)
minDistance is the closest that any two points are together.
|
static void |
AlgorithmHelper.maximizeSizes(IEntityLayout[] entities)
Resizes the nodes so that they have a maximal area without overlapping
each other, with additional empty space of 20% of node's width (or
height, if bigger).
|
Copyright (c) 2014 itemis AG and others. All rights reserved.