|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.layout.edge.EdgeLayoutConstants
This class contains attributes and their default values that are
used by class DefaultEdgeLayout.
Class DefaultEdgeLayout provides a
path detector to route edges. It ensures that edges can be drawn
without overlapping nodes by finding an appropriate path between them.
The following attributes can be used to enable the path detector and
configure it:
In some cases the segments of different edges cover each other completely or
in part so that it becomes difficult to distinguish between them.
The DefaultEdgeLayout class provides a
segment separator which is able to detect and shift these overlapping
edge segments.
Forks can be used to bunch edge segments shortly before the node boundaries;
By not using Forks, edges will run parallel up to node boundaries.
The following attributes help to configure the segment separator:
AVOID_OVERPLAPPING_DESC EDGE_SEGMENT_DISTANCE_DESCFORK_LENGTH_DESCFORK_OFFSET_DESCRESTRICT_EDGES_DESC
Building bridges at a crossing point between two edges helps to
recognize the edge track better.
The DefaultEdgeLayout class provides
a bridge builder for this purpose.
There are several predefined bridge types and a bridge size that can be configured.
The bridge builder merges several bridges into one if they are too close
to each other. The edge distance attribute MIN_DISTANCE_TO_NODE_DESC
has therefore a direct influence on this behavior. Please note that bridges
will only be built if there is enough space to draw them completely.
The attributes listed below help to configure the bridges:
The bends of the orthogonal edges can be rounded.
The DefaultEdgeLayout class
uses quadrants to round the edge bends. The following attributes are provided
to enable this feature and adjust the roundness of the bends:
The edge bends of simple orthogonal edges will normally be placed in the
middle of the distance between the start and end points of the edges.
This is usually not very convenient when the connected nodes are not perfectly
aligned. This situation may occur when a user moves nodes around while modeling
a graph.
The provided segment leveler may help to make the relationships clearer and
the graph more orderly.
The DefaultEdgeLayout class arranges
labels on the edges without changing the edge path.
The labels will be arranged in such a way that they can be drawn without
overlapping other labels or nodes. The position of the label will be
changed only if it becomes absolutely necessary. The new position will
always be on the appropriate edge.
The label arranger can be configured with following
attributes:
AUTO_LABEL_PLACEMENT_DESC LABEL_DISTANCE_TO_EDGE_DECSLABEL_OUTER_MARGIN_DESCLABEL_PLACEMENT_STRATEGY_DESC
The distance between the marker and the first and last bend of that marker
can be set.
The following attributes can be used for this purpose:
| Field Summary | |
static java.lang.Boolean |
AUTO_LABEL_PLACEMENT_DEF
The default value for AUTO_LABEL_PLACEMENT_DESC. |
static java.lang.String |
AUTO_LABEL_PLACEMENT_DESC
Enables/disables automatic label placement. |
static java.lang.Boolean |
AUTO_PATH_DETECTING_DEF
The default value for AUTO_PATH_DETECTING_DESC. |
static java.lang.String |
AUTO_PATH_DETECTING_DESC
The path detector can be used to ensure drawing edges without overlapping nodes. |
static java.lang.Boolean |
AVOID_OVERPLAPPING_DEF
The default value for AVOID_OVERPLAPPING_DESC. |
static java.lang.String |
AVOID_OVERPLAPPING_DESC
Enables/disables the edge segment separator. |
static java.lang.Boolean |
BEND_ROUNDING_DEF
The default value for BEND_ROUNDING_DESC. |
static java.lang.String |
BEND_ROUNDING_DESC
Enables/disables the bend rounding of orthogonal edges. |
static java.lang.String |
BRIDGE_FOOTING_DESC
This attribute specifies whether the bridges are to be built for vertical edge segments or horizontal edge segments. |
static java.lang.String |
BRIDGE_FOOTING_HORIZONTAL_SEGMENT
The horizontal segments of the edges should be used. |
static java.lang.String |
BRIDGE_FOOTING_VERTICAL_SEGMENT
The vertical segments of the edges should be used. |
static MetricExpression |
BRIDGE_HEIGHT_DEF
The default bridge height. |
static java.lang.String |
BRIDGE_HEIGHT_DESC
Determines the height of all bridges. |
static java.lang.String |
BRIDGE_STYLE_ARC
Arc bridge style specifier. |
static java.lang.String |
BRIDGE_STYLE_DEF
The default value for BRIDGE_STYLE_DESC. |
static java.lang.String |
BRIDGE_STYLE_DESC
Specifies the style of the bridges that will be drawn at the crossing points of two edges. |
static java.lang.String |
BRIDGE_STYLE_NONE
None. |
static java.lang.String |
BRIDGE_STYLE_SQUARE
Square bridge style specifier. |
static java.lang.String |
BRIDGE_STYLE_THREE_SIDES
Three-sided bridge style specifier. |
static java.lang.String |
BRIDGE_STYLE_TWO_SIDES
Two-sided bridge style specifier. |
static MetricExpression |
BRIDGE_WIDTH_DEF
The default bridge width. |
static java.lang.String |
BRIDGE_WIDTH_DESC
Determines the width of all bridges. |
static java.lang.String |
CONSIDERING_ORIGINAL_EDGE_PATH_ALWAYS
The current edge path won't be changed if all criteria are met.; but an edge could be rearranged if the current route runs through a node. |
static java.lang.String |
CONSIDERING_ORIGINAL_EDGE_PATH_DEE
The default value for CONSIDERING_ORIGINAL_EDGE_PATH_DESC. |
static java.lang.String |
CONSIDERING_ORIGINAL_EDGE_PATH_DESC
This attribute determines how to deal with the edge path set beforehand by a NodeLayout.
|
static java.lang.String |
CONSIDERING_ORIGINAL_EDGE_PATH_LIMITED
The current edge path will only be taken in consideration if the current criteria are met, and the changes after user interaction do not exceed a specified limit of tolerance. |
static java.lang.String |
CONSIDERING_ORIGINAL_EDGE_PATH_NEVER
The current edge path will never be taken in consideration. |
static MetricExpression |
EDGE_SEGMENT_DISTANCE_DEF
The default value for EDGE_SEGMENT_DISTANCE_DESC. |
static java.lang.String |
EDGE_SEGMENT_DISTANCE_DESC
Specifies the minimum distance between parallel edge segments. |
static MetricExpression |
FORK_LENGTH_DEF
The default value for FORK_LENGTH_DESC. |
static java.lang.String |
FORK_LENGTH_DESC
Specifies the fork length, i.e. the length of the fork which will be used to bunch edges shortly before the border of the attached node. |
static MetricExpression |
FORK_OFFSET_DEF
The default value for FORK_OFFSET_DESC. |
static java.lang.String |
FORK_OFFSET_DESC
Specifies the fork offset, i.e. the offset of the fork which will be used to bunch edges shortly before the border of the attached node. |
static java.lang.String |
LABEL_DISTANCE_TO_EDGE_DECS
This attribute may be used to adjust the distance of the labels to the according edge segments. |
static MetricExpression |
LABEL_DISTANCE_TO_EDGE_DEF
The default value for LABEL_DISTANCE_TO_EDGE_DECS |
static MetricExpression |
LABEL_OUTER_MARGIN_DEF
The default value for LABEL_OUTER_MARGIN_DESC |
static java.lang.String |
LABEL_OUTER_MARGIN_DESC
This attribute specifies the minimum distance between the boundary of labels to other labels and nodes. |
static java.lang.String |
LABEL_PLACEMENT_BESTFIT
Using of the best fit placement strategy, the label will be assigned to the biggest available area. |
static java.lang.String |
LABEL_PLACEMENT_FIRSTFIT
Using of the first fit placement strategy, the label will be assigned to the first detected area that is large enough to accommodate it. |
static java.lang.String |
LABEL_PLACEMENT_STRATEGY_DEF
The default value for AUTO_LABEL_PLACEMENT_DESC. |
static java.lang.String |
LABEL_PLACEMENT_STRATEGY_DESC
Specifies the placement strategy that should be used to arrange labels. |
static java.lang.String |
LAYOUT_NAME
The name of this layout. |
static MetricExpression |
LIMIT_OF_TOLERANCE_DEF
The default value for LIMIT_OF_TOLERANCE_DESC. |
static java.lang.String |
LIMIT_OF_TOLERANCE_DESC
This attribute can be used to define the limit of tolerance if the routing strategy CONSIDERING_ORIGINAL_EDGE_PATH_LIMITED is being used. |
static MetricExpression |
MIN_DISTANCE_TO_MARKER_DEF
The default value for MIN_DISTANCE_TO_MARKER_DESC. |
static java.lang.String |
MIN_DISTANCE_TO_MARKER_DESC
This attribute specifies the minimum distance between the first/last bend to the edge marker. |
static MetricExpression |
MIN_DISTANCE_TO_NODE_DEF
The default value for MIN_DISTANCE_TO_NODE_DESC. |
static java.lang.String |
MIN_DISTANCE_TO_NODE_DESC
This attribute specifies the minimum distance between edges and nodes. |
static java.lang.String |
PATH_DETECTING_FAST
This strategy is simple and fast. |
static java.lang.String |
PATH_DETECTING_MIN_BEND
The path detector will choose a path with the minimal number of bends. |
static java.lang.String |
PATH_DETECTING_SHORTEST_PATH
The path detector will choose the shortest path. |
static java.lang.String |
PATH_DETECTING_STRATEGY_DESC
This attribute may be used to specify a predefined routing strategy. |
static java.lang.Boolean |
REASSIGN_PORTS_DEF
The default value for REASSIGN_PORTS_DESC. |
static java.lang.String |
REASSIGN_PORTS_DESC
Deprecated. Please use LayoutController.setAutomaticPortReassignment(boolean) and
LayoutController.getAutomaticPortReassignment() instead. |
static java.lang.Boolean |
RESTRICT_EDGES_DEF
The default value for RESTRICT_EDGES_DESC. |
static java.lang.String |
RESTRICT_EDGES_DESC
Determines whether the first/last edge segments have to be restricted in source/target node area or not. |
static MetricExpression |
ROUNDING_VALUE_DEF
The default value for ROUNDING_VALUE_DESC. |
static java.lang.String |
ROUNDING_VALUE_DESC
This attribute may be used to determine the radius of the quadrants. |
static java.lang.Boolean |
SEGMENT_LEVELING_DEF
The default value for SEGMENT_LEVELING_DESC. |
static java.lang.String |
SEGMENT_LEVELING_DESC
Enables/disables segment leveling. |
| 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 MIN_DISTANCE_TO_NODE_DESC
MIN_DISTANCE_TO_NODE_DEF,
MIN_DISTANCE_TO_MARKER_DESC,
Constant Field Valuespublic static final MetricExpression MIN_DISTANCE_TO_NODE_DEF
MIN_DISTANCE_TO_NODE_DESC.
public static final java.lang.String MIN_DISTANCE_TO_MARKER_DESC
MIN_DISTANCE_TO_MARKER_DESC,
MIN_DISTANCE_TO_NODE_DESC,
Constant Field Valuespublic static final MetricExpression MIN_DISTANCE_TO_MARKER_DEF
MIN_DISTANCE_TO_MARKER_DESC.
public static final java.lang.String AUTO_PATH_DETECTING_DESC
MIN_DISTANCE_TO_NODE_DESC.
AUTO_PATH_DETECTING_DEF,
MIN_DISTANCE_TO_NODE_DESC,
MIN_DISTANCE_TO_MARKER_DESC,
Constant Field Valuespublic static final java.lang.Boolean AUTO_PATH_DETECTING_DEF
AUTO_PATH_DETECTING_DESC.
public static final java.lang.String REASSIGN_PORTS_DESC
LayoutController.setAutomaticPortReassignment(boolean) and
LayoutController.getAutomaticPortReassignment() instead.
REASSIGN_PORTS_DESC,
Constant Field Valuespublic static final java.lang.Boolean REASSIGN_PORTS_DEF
REASSIGN_PORTS_DESC.
public static final java.lang.String PATH_DETECTING_STRATEGY_DESC
PATH_DETECTING_FAST,
PATH_DETECTING_MIN_BEND,
PATH_DETECTING_SHORTEST_PATH,
Constant Field Valuespublic static final java.lang.String PATH_DETECTING_FAST
PATH_DETECTING_MIN_BEND,
PATH_DETECTING_SHORTEST_PATH,
Constant Field Valuespublic static final java.lang.String PATH_DETECTING_MIN_BEND
PATH_DETECTING_MIN_BEND,
PATH_DETECTING_FAST,
Constant Field Valuespublic static final java.lang.String PATH_DETECTING_SHORTEST_PATH
PATH_DETECTING_MIN_BEND,
PATH_DETECTING_FAST,
Constant Field Valuespublic static final java.lang.String CONSIDERING_ORIGINAL_EDGE_PATH_DESC
NodeLayout.
null
The possible values are:
CONSIDERING_ORIGINAL_EDGE_PATH_NEVER CONSIDERING_ORIGINAL_EDGE_PATH_ALWAYS CONSIDERING_ORIGINAL_EDGE_PATH_LIMITED
public static final java.lang.String CONSIDERING_ORIGINAL_EDGE_PATH_ALWAYS
CONSIDERING_ORIGINAL_EDGE_PATH_DESC,
CONSIDERING_ORIGINAL_EDGE_PATH_NEVER,
CONSIDERING_ORIGINAL_EDGE_PATH_LIMITED,
Constant Field Valuespublic static final java.lang.String CONSIDERING_ORIGINAL_EDGE_PATH_NEVER
CONSIDERING_ORIGINAL_EDGE_PATH_DESC,
CONSIDERING_ORIGINAL_EDGE_PATH_ALWAYS,
CONSIDERING_ORIGINAL_EDGE_PATH_LIMITED,
Constant Field Valuespublic static final java.lang.String CONSIDERING_ORIGINAL_EDGE_PATH_LIMITED
CONSIDERING_ORIGINAL_EDGE_PATH_DESC,
CONSIDERING_ORIGINAL_EDGE_PATH_ALWAYS,
CONSIDERING_ORIGINAL_EDGE_PATH_NEVER,
Constant Field Valuespublic static final java.lang.String LIMIT_OF_TOLERANCE_DESC
CONSIDERING_ORIGINAL_EDGE_PATH_LIMITED is being used.
CONSIDERING_ORIGINAL_EDGE_PATH_DESC,
CONSIDERING_ORIGINAL_EDGE_PATH_LIMITED,
Constant Field Valuespublic static final MetricExpression LIMIT_OF_TOLERANCE_DEF
LIMIT_OF_TOLERANCE_DESC.
public static final java.lang.String CONSIDERING_ORIGINAL_EDGE_PATH_DEE
CONSIDERING_ORIGINAL_EDGE_PATH_DESC.
public static final java.lang.String AVOID_OVERPLAPPING_DESC
EDGE_SEGMENT_DISTANCE_DESC.
EDGE_SEGMENT_DISTANCE_DESC,
FORK_OFFSET_DESC,
FORK_LENGTH_DESC,
Constant Field Valuespublic static final java.lang.Boolean AVOID_OVERPLAPPING_DEF
AVOID_OVERPLAPPING_DESC.
public static final java.lang.String RESTRICT_EDGES_DESC
public static final java.lang.Boolean RESTRICT_EDGES_DEF
RESTRICT_EDGES_DESC.
public static final java.lang.String EDGE_SEGMENT_DISTANCE_DESC
AVOID_OVERPLAPPING_DESC is set.
CompositeLine.setType(int),
EDGE_SEGMENT_DISTANCE_DEF,
AVOID_OVERPLAPPING_DESC,
Constant Field Valuespublic static final MetricExpression EDGE_SEGMENT_DISTANCE_DEF
EDGE_SEGMENT_DISTANCE_DESC.
public static final java.lang.String FORK_OFFSET_DESC
AVOID_OVERPLAPPING_DESC is set.
FORK_OFFSET_DESC,
FORK_LENGTH_DESC,
Constant Field Valuespublic static final MetricExpression FORK_OFFSET_DEF
FORK_OFFSET_DESC.
public static final java.lang.String FORK_LENGTH_DESC
AVOID_OVERPLAPPING_DESC is set.
FORK_LENGTH_DEF,
FORK_OFFSET_DESC,
Constant Field Valuespublic static final MetricExpression FORK_LENGTH_DEF
FORK_LENGTH_DESC.
public static final java.lang.String BRIDGE_STYLE_DESC
BRIDGE_STYLE_NONE if the bridge builder should be
disabled.
BRIDGE_STYLE_DEF,
BRIDGE_STYLE_SQUARE,
BRIDGE_STYLE_TWO_SIDES,
BRIDGE_STYLE_THREE_SIDES,
BRIDGE_STYLE_ARC,
BRIDGE_STYLE_NONE,
Constant Field Valuespublic static final java.lang.String BRIDGE_STYLE_DEF
BRIDGE_STYLE_DESC.
public static final java.lang.String BRIDGE_STYLE_SQUARE
BRIDGE_STYLE_DESC,
Constant Field Valuespublic static final java.lang.String BRIDGE_STYLE_TWO_SIDES
BRIDGE_STYLE_DESC,
Constant Field Valuespublic static final java.lang.String BRIDGE_STYLE_THREE_SIDES
BRIDGE_STYLE_DESC,
Constant Field Valuespublic static final java.lang.String BRIDGE_STYLE_ARC
BRIDGE_STYLE_DESC,
Constant Field Valuespublic static final java.lang.String BRIDGE_STYLE_NONE
BRIDGE_STYLE_DESC,
Constant Field Valuespublic static final java.lang.String BRIDGE_FOOTING_DESC
BRIDGE_FOOTING_VERTICAL_SEGMENT,
BRIDGE_FOOTING_HORIZONTAL_SEGMENT,
{@}
The possible values are:
- {@link #BRIDGE_FOOTING_VERTICAL_SEGMENT}
- {@link #BRIDGE_FOOTING_HORIZONTAL_SEGMENT}
{@ },
Constant Field Valuespublic static final java.lang.String BRIDGE_FOOTING_VERTICAL_SEGMENT
BRIDGE_FOOTING_DESC,
Constant Field Valuespublic static final java.lang.String BRIDGE_FOOTING_HORIZONTAL_SEGMENT
BRIDGE_FOOTING_DESC,
Constant Field Valuespublic static final java.lang.String BRIDGE_WIDTH_DESC
BRIDGE_STYLE_DESC,
Constant Field Valuespublic static final MetricExpression BRIDGE_WIDTH_DEF
BRIDGE_WIDTH_DESCpublic static final java.lang.String BRIDGE_HEIGHT_DESC
BRIDGE_STYLE_DESC,
Constant Field Valuespublic static final MetricExpression BRIDGE_HEIGHT_DEF
BRIDGE_WIDTH_DESCpublic static final java.lang.String BEND_ROUNDING_DESC
BEND_ROUNDING_DEF,
ROUNDING_VALUE_DESC,
Constant Field Valuespublic static final java.lang.Boolean BEND_ROUNDING_DEF
BEND_ROUNDING_DESC.
public static final java.lang.String ROUNDING_VALUE_DESC
ROUNDING_VALUE_DEF,
BEND_ROUNDING_DESC,
Constant Field Valuespublic static final MetricExpression ROUNDING_VALUE_DEF
ROUNDING_VALUE_DESC.
public static final java.lang.String SEGMENT_LEVELING_DESC
SEGMENT_LEVELING_DEF,
Constant Field Valuespublic static final java.lang.Boolean SEGMENT_LEVELING_DEF
SEGMENT_LEVELING_DESC.
public static final java.lang.String AUTO_LABEL_PLACEMENT_DESC
AUTO_LABEL_PLACEMENT_DEF,
LABEL_PLACEMENT_STRATEGY_DESC,
ROUNDING_VALUE_DESC,
LABEL_DISTANCE_TO_EDGE_DEF,
Constant Field Valuespublic static final java.lang.Boolean AUTO_LABEL_PLACEMENT_DEF
AUTO_LABEL_PLACEMENT_DESC.
public static final java.lang.String LABEL_PLACEMENT_STRATEGY_DESC
LABEL_PLACEMENT_STRATEGY_DEF,
LABEL_PLACEMENT_FIRSTFIT,
LABEL_PLACEMENT_BESTFIT,
Constant Field Valuespublic static final java.lang.String LABEL_PLACEMENT_FIRSTFIT
LABEL_PLACEMENT_STRATEGY_DESC,
LABEL_PLACEMENT_BESTFIT,
Constant Field Valuespublic static final java.lang.String LABEL_PLACEMENT_BESTFIT
LABEL_PLACEMENT_STRATEGY_DESC,
LABEL_PLACEMENT_FIRSTFIT,
Constant Field Valuespublic static final java.lang.String LABEL_PLACEMENT_STRATEGY_DEF
AUTO_LABEL_PLACEMENT_DESC.
public static final java.lang.String LABEL_OUTER_MARGIN_DESC
LABEL_OUTER_MARGIN_DESC,
LABEL_DISTANCE_TO_EDGE_DECS,
Constant Field Valuespublic static final MetricExpression LABEL_OUTER_MARGIN_DEF
LABEL_OUTER_MARGIN_DESC
public static final java.lang.String LABEL_DISTANCE_TO_EDGE_DECS
LABEL_DISTANCE_TO_EDGE_DEF,
LABEL_OUTER_MARGIN_DESC,
Constant Field Valuespublic static final MetricExpression LABEL_DISTANCE_TO_EDGE_DEF
LABEL_DISTANCE_TO_EDGE_DECS
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||