An abstract base class that makes it possible to easily implement a custom
IEdgeStyle.
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 SimpleAbstractEdgeStyle : IEdgeStyle, IVisualStyle<IEdge>, IModelItemInstaller<IEdge>, ICloneable |
| Visual Basic |
|---|
Public MustInherit Class SimpleAbstractEdgeStyle _ Implements IEdgeStyle, IVisualStyle(Of IEdge), _ IModelItemInstaller(Of IEdge), ICloneable |
Remarks
The only method that needs to be implemented by subclasses is Paint(IEdge, Graphics, IRenderContext).
This implementation differs from the straightforward IEdgeStyle 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..::..SimpleAbstractEdgeStyle
yWorks.yFiles.UI.Drawing..::..SimpleAbstractEdgeStyle