|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.layout.hierarchical.HierarchicalLayoutConstants
This class contains attributes and their default values that are
used by HierarchicalLayout.
The result of a graph arranged by a hierarchical layout algorithm is
always a directed graph. The HierarchicalLayout
class is able to arrange a given graph in different directions. The following
attribute may be used to select one of the predefined flow directions:
The distance between nodes is adjustable.
The attributes provided by the HierarchicalLayout
class to adjust the node distance are listed below:
The HierarchicalLayout class provides
the following attributes to determine the relative position of nodes to each
other. It is possible to influence the relative position of the nodes
that lie on the same layer as well as the relative position of the connected
nodes lying on adjacent layers:
The hierarchical layout algorithm arranges a graph by placing nodes in different layers of a plane. The following attributes can be used to select a layer assignment strategy and to determine the maximum number of nodes placed on each layer:
In some cases labels may cover each other or other nodes. This is often the situation when the layer distance or node distance is not large enough. The following attribute can be used to ensure that there is enough space for each label:
Hierarchical graphs are used in different applications, such those representing
workflows and flowcharts. In many cases a special arrangement of an edge (path)
emphasizes its particular role in a graph.
The HierarchicalLayout
provides the following attribute to support different treatment of edges:
| Field Summary | |
static java.lang.String |
DIRECTION_BOTTOM_TO_TOP
Arranges the graph from bottom to top. |
static java.lang.String |
DIRECTION_LEFT_TO_RIGHT
Arranges the graph from left to right. |
static java.lang.String |
DIRECTION_RIGHT_TO_LEFT
Arranges the graph from right to left. |
static java.lang.String |
DIRECTION_TOP_TO_BOTTOM
Arranges the graph from top to bottom. |
static java.lang.String |
EDGE_CATEGORY_DESC
description text for attributes of edges |
static java.lang.String |
EDGE_LABEL_CATEGORY_DESC
description text for attributes of edges labels |
static java.lang.String |
EDGE_TYPE_DESC
This attribute can be used to select a predefined layout style for each edge. |
static java.lang.String |
EDGE_TYPE_DIRECTED
A Directed edge type specifies a standard connector between two nodes. |
static java.lang.String |
EDGE_TYPE_LOOP
A Loop edge connects two nodes but it has an effect on their positions. |
static java.lang.Boolean |
ENSURE_LABEL_INTERSPACE_DEF
Default value for ENSURE_LABEL_INTERSPACE_DESC |
static java.lang.String |
ENSURE_LABEL_INTERSPACE_DESC
Determines whether the hierarchical layout algorithm has to consider the bounding box of the labels on the edges or not. |
static java.lang.Boolean |
FIXED_LAYER_DISTANCE_DEF
Default value for FIXED_LAYER_DISTANCE_DESC |
static java.lang.String |
FIXED_LAYER_DISTANCE_DESC
Determines whether the layer distance should be expanded dynamically or not. |
static java.lang.String |
GRAPH_CATEGORY_DESC
description text for attributes of graph |
static java.lang.String |
GRAPH_DIRECTION_DESC
This attribute can be used to determine the flow direction. |
static MetricExpression |
LAYER_DISTANCE_DEF
The default value for LAYER_DISTANCE_DESC |
static java.lang.String |
LAYER_DISTANCE_DESC
The distance between two layers. |
static java.lang.String |
LAYERING_STRATEGY_BOTTOM_UP
Each node will be layered immediately before its first successor. |
static java.lang.String |
LAYERING_STRATEGY_DESC
This attribute can be used to select a predefined strategy for assignment of nodes to layers. |
static java.lang.String |
LAYERING_STRATEGY_FREE
The nodes will not automatically placed on layers with a fix distance but the layouter will take the current
position of the nodes in the consideration.
|
static java.lang.String |
LAYERING_STRATEGY_TOP_DOWN
Each node will be layered immediately after its last predecessor. |
static java.lang.String |
LAYOUT_NAME
The name of the layout. |
static int |
MAX_LAYER_WIDTH_DEF
The default value for MAX_LAYER_WIDTH_DESC |
static java.lang.String |
MAX_LAYER_WIDTH_DESC
This attribute can be used to limit the maximal number of nodes on each layer. |
static java.lang.String |
NODE_ALIGNMENT_DESC
This attribute specifies the relative position of nodes in the same layer. |
static java.lang.String |
NODE_ALIGNMENT_HEAD
Aligns nodes top or left in a layer, depending on the flow direction. |
static java.lang.String |
NODE_ALIGNMENT_MIDDLE
Centers nodes in the layer. |
static java.lang.String |
NODE_ALIGNMENT_TAIL
Aligns nodes bottom or right in a layer, depending on the flow direction. |
static java.lang.String |
NODE_ARRANGEMENT_DESC
This attribute may be used to choose one of the predefined layout styles. |
static java.lang.String |
NODE_ARRANGEMENT_SIMPLEX
The HierarchicalLayout tries
to arrange nodes in such a way that the start and end nodes lie on the same layer.
|
static java.lang.String |
NODE_ARRANGEMENT_TREE
Nodes will be placed in the middle of the area used by their predecessors or successor. |
static java.lang.String |
NODE_CATEGORY_DESC
description text for attributes of nodes |
static java.lang.String |
NODE_CENTER_TO_PORT_DESC
This attribute specifies the position of connected nodes relative to each other. |
static java.lang.String |
NODE_CHILD_ARRANGEMENT_CENTER_NODES
The parent node will be arranged in the middle of the bounding box of its children. |
static java.lang.String |
NODE_CHILD_ARRANGEMENT_CENTER_PORTS
The parent node will be centred to the middle point of its children's ports. |
static java.lang.String |
NODE_CHILD_ARRANGEMENT_DEF
Default value for NODE_CHILD_ARRANGEMENT_DESC |
static java.lang.String |
NODE_CHILD_ARRANGEMENT_DESC
This attribute specifies the relative position of a node to its successor. |
static java.lang.String |
NODE_CHILD_ARRANGEMENT_HEAD
The first child will be arranged on the same level as the parent node. |
static java.lang.String |
NODE_CHILD_ARRANGEMENT_TAIL
The last child will be arranged on the same level as the parent node. |
static java.lang.String |
NODE_CONSIDER_EXTERNAL
This attribute determines wheather the external element of node should be taken into consideration, or not. |
static java.lang.Boolean |
NODE_CONSIDER_EXTERNAL_DEF
Default value for NODE_CONSIDER_EXTERNAL |
static MetricExpression |
NODE_DISTANCE_DEF
The default value for NODE_DISTANCE_DESC |
static java.lang.String |
NODE_DISTANCE_DESC
The distance between two nodes in the same layer. |
static java.lang.String |
NODE_LAYER_DESC
Specifies the layer of the node. |
static java.lang.String |
NODE_ORDER_DESC
Specifies the order of the node on the layer. |
| Constructor Summary | |
HierarchicalLayoutConstants()
Constructs |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String LAYOUT_NAME
public static final java.lang.String NODE_DISTANCE_DESC
public static final MetricExpression NODE_DISTANCE_DEF
NODE_DISTANCE_DESC
public static final java.lang.String LAYER_DISTANCE_DESC
public static final MetricExpression LAYER_DISTANCE_DEF
LAYER_DISTANCE_DESC
public static final java.lang.String FIXED_LAYER_DISTANCE_DESC
true the
hierarchical layout algorithm will enlarge the
specified layer distance depending on the number of
connected nodes on each two adjacent layers; otherwise it will remain at
the layer distance specified by LAYER_DISTANCE_DESC.
public static final java.lang.Boolean FIXED_LAYER_DISTANCE_DEF
FIXED_LAYER_DISTANCE_DESC
public static final java.lang.String LAYERING_STRATEGY_DESC
public static final java.lang.String LAYERING_STRATEGY_TOP_DOWN
LAYERING_STRATEGY_DESC,
Constant Field Valuespublic static final java.lang.String LAYERING_STRATEGY_BOTTOM_UP
LAYERING_STRATEGY_DESC,
Constant Field Valuespublic static final java.lang.String LAYERING_STRATEGY_FREE
layouter will take the current
position of the nodes in the consideration.
LAYER_DISTANCE_DEF will not have
any effect if this strategy is selected.
LAYERING_STRATEGY_DESC,
Constant Field Valuespublic static final java.lang.String MAX_LAYER_WIDTH_DESC
public static final int MAX_LAYER_WIDTH_DEF
MAX_LAYER_WIDTH_DESC
public static final java.lang.String GRAPH_DIRECTION_DESC
public static final java.lang.String DIRECTION_LEFT_TO_RIGHT
GRAPH_DIRECTION_DESC,
Constant Field Valuespublic static final java.lang.String DIRECTION_TOP_TO_BOTTOM
GRAPH_DIRECTION_DESC,
Constant Field Valuespublic static final java.lang.String DIRECTION_RIGHT_TO_LEFT
GRAPH_DIRECTION_DESC,
Constant Field Valuespublic static final java.lang.String DIRECTION_BOTTOM_TO_TOP
GRAPH_DIRECTION_DESC,
Constant Field Valuespublic static final java.lang.String NODE_ALIGNMENT_DESC
public static final java.lang.String NODE_ALIGNMENT_HEAD
NODE_ALIGNMENT_DESC,
Constant Field Valuespublic static final java.lang.String NODE_ALIGNMENT_MIDDLE
NODE_ALIGNMENT_DESC,
Constant Field Valuespublic static final java.lang.String NODE_ALIGNMENT_TAIL
NODE_ALIGNMENT_DESC,
Constant Field Valuespublic static final java.lang.String NODE_CENTER_TO_PORT_DESC
true, the nodes will be
arranged in such a way that their ports lie on the same vertical or
horizontal line; otherwise the nodes will be centered to in their
bounding box.
public static final java.lang.String NODE_ARRANGEMENT_DESC
public static final java.lang.String NODE_ARRANGEMENT_TREE
NODE_ARRANGEMENT_SIMPLEX,
Constant Field Valuespublic static final java.lang.String NODE_ARRANGEMENT_SIMPLEX
HierarchicalLayout tries
to arrange nodes in such a way that the start and end nodes lie on the same layer.
NODE_ARRANGEMENT_TREE,
Constant Field Valuespublic static final java.lang.String NODE_CONSIDER_EXTERNAL
public static final java.lang.Boolean NODE_CONSIDER_EXTERNAL_DEF
NODE_CONSIDER_EXTERNAL
public static final java.lang.String NODE_LAYER_DESC
DESCRIPTION_NODE_LAYER
is null or a negative value, the layout assigns the layer
automatically
public static final java.lang.String NODE_ORDER_DESC
NODE_ORDER_DESC is set, the layout
will keep the given order only if it does not cause a crossing of edges,
which can be avoided by changing of node order.
public static final java.lang.String NODE_CHILD_ARRANGEMENT_HEAD
NODE_CHILD_ARRANGEMENT_DESC,
Constant Field Valuespublic static final java.lang.String NODE_CHILD_ARRANGEMENT_CENTER_NODES
NODE_CHILD_ARRANGEMENT_DESC,
Constant Field Valuespublic static final java.lang.String NODE_CHILD_ARRANGEMENT_CENTER_PORTS
NODE_CHILD_ARRANGEMENT_DESC,
Constant Field Valuespublic static final java.lang.String NODE_CHILD_ARRANGEMENT_TAIL
NODE_CHILD_ARRANGEMENT_DESC,
Constant Field Valuespublic static final java.lang.String NODE_CHILD_ARRANGEMENT_DESC
NODE_CHILD_ARRANGEMENT_HEAD NODE_CHILD_ARRANGEMENT_CENTER_NODES NODE_CHILD_ARRANGEMENT_CENTER_PORTS NODE_CHILD_ARRANGEMENT_TAIL
public static final java.lang.String NODE_CHILD_ARRANGEMENT_DEF
NODE_CHILD_ARRANGEMENT_DESC
public static final java.lang.String EDGE_TYPE_DESC
public static final java.lang.String EDGE_TYPE_DIRECTED
public static final java.lang.String EDGE_TYPE_LOOP
public static final java.lang.String ENSURE_LABEL_INTERSPACE_DESC
public static final java.lang.Boolean ENSURE_LABEL_INTERSPACE_DEF
ENSURE_LABEL_INTERSPACE_DESC
public static final java.lang.String GRAPH_CATEGORY_DESC
public static final java.lang.String NODE_CATEGORY_DESC
public static final java.lang.String EDGE_CATEGORY_DESC
public static final java.lang.String EDGE_LABEL_CATEGORY_DESC
| Constructor Detail |
public HierarchicalLayoutConstants()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||