Package | Description |
---|---|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
Modifier and Type | Field and Description |
---|---|
static EdgeDpKey<LabelLayoutData> |
LabelLayoutKeys.EDGE_LABEL_LAYOUT_DPKEY
A
DataProvider key for accessing label information of each edge in the input graph
|
static NodeDpKey<LabelLayoutData> |
LabelLayoutKeys.NODE_LABEL_LAYOUT_DPKEY
A
DataProvider key for accessing label information of each node in the input graph
|
Modifier and Type | Method and Description |
---|---|
void |
EdgeLabelOrientationSupport.markPortLabelForFallbackPlacement(LabelLayoutData portLabel)
Marks the given port label for a non-port placement (fallback).
|
void |
EdgeLabelOrientationSupport.postProcessLabel(Graph graph,
LabelLayoutData label)
Restores the original preferred placement and updates the label rotation according to the layout orientation.
|
void |
EdgeLabelOrientationSupport.preProcessLabel(Graph graph,
LabelLayoutData label,
Direction segmentDirection)
Prepares the label for the core layout algorithm.
|
static void |
EdgeLabelOrientationSupport.updateLabelOrientation(LabelLayoutData label,
Direction segmentDirection)
Calculates and sets the up vector of an edge label considering the preferred placement of the label as well as the
direction of the edge segment the label is attached to.
|