An abstract base class that makes it possible to easily implement a custom
ILabelStyle.
Namespace: yWorks.yFiles.UI.DrawingAssembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)
Syntax
| C# |
|---|
public abstract class SimpleAbstractLabelStyle : ILabelStyle, IVisualStyle<ILabel>, IModelItemInstaller<ILabel>, ICloneable |
| Visual Basic |
|---|
Public MustInherit Class SimpleAbstractLabelStyle _ Implements ILabelStyle, IVisualStyle(Of ILabel), _ IModelItemInstaller(Of ILabel), ICloneable |
Remarks
Only Paint(ILabel, Graphics, IRenderContext) and GetPreferredSize(ILabel) need to be implemented
by subclasses.
This implementation differs from the straightforward ILabelStyle implementation
in that there is no visible separation between the IVisualStyle<(Of <(<'TModelItem>)>)>
and its IStyleRenderer<(Of <(<'TModelItem, TStyle>)>)>. Instead the renderer used by the
base class is fixed and delegates all calls back to the style instance.
Related Demo Applications
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.UI.Drawing..::..SimpleAbstractLabelStyle
yWorks.yFiles.UI.Drawing..::..SimpleAbstractLabelStyle