Package | Description |
---|---|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
com.yworks.yfiles.layout.labeling |
Provides algorithms for the automatic placement of node and edge labels, so called generic labeling algorithms.
|
Modifier and Type | Class and Description |
---|---|
class |
DiscreteEdgeLabelLayoutModel
DiscreteEdgeLabelLayoutModel describes the placement of rotated labels at some predefined positions along the
edge. |
class |
FreeEdgeLabelLayoutModel
FreeEdgeLabelLayoutModel allows placing edge labels at any location. |
class |
SliderEdgeLabelLayoutModel
SliderEdgeLabelLayoutModel allows placement of labels at a set of continuous rotated positions along both sides
of an edge or directly on the edge path. |
Modifier and Type | Method and Description |
---|---|
IEdgeLabelLayoutModel |
IEdgeLabelLayout.getLabelModel()
Gets the label model that describes the valid locations for this label.
|
Modifier and Type | Method and Description |
---|---|
IEdgeLabelLayout |
ILabelLayoutFactory.createLabelLayout(Edge edge,
YOrientedRectangle orientedBox,
IEdgeLabelLayoutModel model,
PreferredPlacementDescriptor descriptor)
Creates a new
ILabelLayout for the given edge. |
static YPoint |
LayoutGraphUtilities.getLabelPlacement(IEdgeLabelLayoutModel model,
YDimension labelSize,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout,
Object param)
Returns the upper-left corner of the paraxial bounding box of the given edge label as encoded by the specified model
parameter.
|
Modifier and Type | Method and Description |
---|---|
ItemMapping<ILabel,IEdgeLabelLayoutModel> |
LabelingData.getEdgeLabelModels()
Gets the mapping from edge labels to an
IEdgeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
Modifier and Type | Method and Description |
---|---|
void |
LabelingData.setEdgeLabelModels(ItemMapping<ILabel,IEdgeLabelLayoutModel> value)
Sets the mapping from edge labels to an
IEdgeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |