A label style decorator that uses a node style instance to render the background and a label style instance to render the foreground of a label.
Implements
- I
- I
See Also
Developer's Guide
Members
No filters for this type
Constructors
Creates a label style that uses the provided node style to render the background and the label style to render the foreground of this style.
Creates a label style that uses the provided node style to render the background and the label style to render the foreground of this style.
Note that the styles will be stored by reference, thus modifying the style will directly affect the rendering of this instance.
Parameters
- nodeStyle?: INodeStyle
- The style to use for rendering the background of the label.
- labelStyle?: ILabelStyle
- The style to use for rendering the foreground of the label.
Properties
final
Property Value
true if the label should be flipped automatically, false otherwise. The default is true.Gets the ILabelStyle that is used for rendering the foreground of the label.
Gets the ILabelStyle that is used for rendering the foreground of the label.
final
See Also
Developer's Guide
Gets or sets the padding to apply for the labelStyle.
Gets or sets the padding to apply for the labelStyle.
The default is
(0,0,0,0)conversionfinal
Property Value
The label style padding.
Gets the INodeStyle that is used for rendering the background of the label.
Gets the INodeStyle that is used for rendering the background of the label.
final
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given label and this style instance.
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given label and this style instance.
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(label, style)
const visual = creator.createVisual(context)readonlyfinal
Implements
ILabelStyle.rendererMethods
Create a clone of this object.
Create a clone of this object.