A label model for node labels that lie inside the node's layout bounds.
Remarks
This label model supports nine positions inside the layout's bounds.
It uses the label's preferredSize for the size of the label layout.
Type Details
- yFiles module
- view
Sample Graphs
Constructors
Properties
Methods
Creates the parameter for the given position.
Parameters
A map of options to pass to the method.
- position - InteriorNodeLabelModelPosition
- The position.
Returns
- ↪InteriorNodeLabelModelParameter
- The parameter for the given position.
Provides a lookup context for the given label.
Calculates the geometry of the given label using the given model parameter.
Parameters
A map of options to pass to the method.
- label - ILabel
- The label to calculate the geometry for.
- layoutParameter - ILabelModelParameter
- A parameter that is compatible with this model. Typically, this is a parameter that has been created by this model, and its property model returns this instance.
Returns
- ↪IOrientedRectangle
- An IOrientedRectangle that describes the geometry of the label. This is typically designed as a flyweight, therefore clients should not cache the instance but store the values if they need a snapshot for later use.
Implements
Returns the minimum size this model would require for the node owner of the label if the given label were used with the provided parameter.
Parameters
A map of options to pass to the method.
- label - ILabel
- The label to use.
- layoutParameter - ILabelModelParameter
- The parameter to use.
Returns
- ↪Size
- The minimum size requirements for this label.
Returns the padding this model would require for the node owner of the label if the given label were used with the provided parameter.
Parameters
A map of options to pass to the method.
- label - ILabel
- The label to use.
- layoutParameter - ILabelModelParameter
- The parameter to use.
Returns
- ↪Insets
- The padding rectangle.
Constants
A predefined parameter instance that places the label inside the node at the bottom.
Remarks
Sample Graphs
A predefined parameter instance that places the label inside the node in the lower left corner.
Remarks
Sample Graphs
A predefined parameter instance that places the label inside the node in the lower right corner.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the center of the node.
Remarks
Sample Graphs
A predefined parameter instance that places the label inside the node on the left side.
Remarks
Sample Graphs
A predefined parameter instance that places the label inside the node on the right side.
Remarks
Sample Graphs
A predefined parameter instance that places the label inside the node at the top.
Remarks
Sample Graphs
A predefined parameter instance that places the label inside the node in the upper left corner.
Remarks
Sample Graphs
A predefined parameter instance that places the label inside the node in the upper right corner.