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 IEdgeLabelLayoutDpKey<PreferredPlacementDescriptor> |
LayoutGraphAdapter.EDGE_LABEL_LAYOUT_PREFERRED_PLACEMENT_DESCRIPTOR_DPKEY
An
IMapperRegistry tag for an IMapper that provides for the edge ILabel s in the AdaptedGraph
a PreferredPlacementDescriptor instance. |
Modifier and Type | Method and Description |
---|---|
protected PreferredPlacementDescriptor |
EdgeLabelOrientationSupport.createNonAmbiguous(PreferredPlacementDescriptor ambiguous)
Creates and returns a non-ambiguous
PreferredPlacementDescriptor of the given potentially ambiguous one. |
PreferredPlacementDescriptor |
LabelLayoutData.getPreferredPlacementDescriptor()
Gets the preferred placement of this label.
|
PreferredPlacementDescriptor |
IEdgeLabelLayout.getPreferredPlacementDescriptor()
Gets the preferred placement for this edge label, which can be considered by
layout algorithms . |
static PreferredPlacementDescriptor |
PreferredPlacementDescriptor.newSharedInstance(LabelPlacements placement)
Returns an immutable descriptor instance for the specified placement.
|
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. |
protected PreferredPlacementDescriptor |
EdgeLabelOrientationSupport.createNonAmbiguous(PreferredPlacementDescriptor ambiguous)
Creates and returns a non-ambiguous
PreferredPlacementDescriptor of the given potentially ambiguous one. |
static YVector |
EdgeLabelOrientationSupport.getEdgeLabelUpVector(PreferredPlacementDescriptor descriptor,
Direction segmentDirection)
Calculates 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.
|
void |
LabelLayoutData.setPreferredPlacementDescriptor(PreferredPlacementDescriptor value)
Sets the preferred placement of this label.
|
Constructor and Description |
---|
LabelLayoutData(YOrientedRectangle bounds,
PreferredPlacementDescriptor preferredPlacement)
Creates a new instance of
LabelLayoutData for a label with the given oriented box and preferred placement
descriptor. |
PreferredPlacementDescriptor(PreferredPlacementDescriptor descriptor)
Creates a new
PreferredPlacementDescriptor instance that copies the given descriptor. |