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 |
DiscreteNodeLabelLayoutModel
DiscreteNodeLabelLayoutModel allows placing labels at eight positions around a node and at nine positions inside
the node. |
class |
FreeNodeLabelLayoutModel
FreeNodeLabelLayoutModel allows placing node labels at any desired position. |
Modifier and Type | Method and Description |
---|---|
INodeLabelLayoutModel |
INodeLabelLayout.getLabelModel()
Gets the label model that describes the valid locations for this label.
|
Modifier and Type | Method and Description |
---|---|
INodeLabelLayout |
ILabelLayoutFactory.createLabelLayout(Node node,
YOrientedRectangle orientedBox,
INodeLabelLayoutModel model)
Creates a new
ILabelLayout for the given node. |
static YPoint |
LayoutGraphUtilities.getLabelPlacement(INodeLabelLayoutModel model,
YDimension labelSize,
INodeLayout nodeLayout,
Object param)
Returns the upper-left corner of the paraxial bounding box of the given node label as encoded by the specified model
parameter.
|
Modifier and Type | Method and Description |
---|---|
ItemMapping<ILabel,INodeLabelLayoutModel> |
LabelingData.getNodeLabelModels()
Gets the mapping from node labels to an
INodeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
Modifier and Type | Method and Description |
---|---|
void |
LabelingData.setNodeLabelModels(ItemMapping<ILabel,INodeLabelLayoutModel> value)
Sets the mapping from node labels to an
INodeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |