Implements
- I
Remarks
Implementations are responsible for rendering INode instances in a CanvasComponent. It is up to the implementation to interpret the visual appearance of a node. The framework uses the associated, possibly shared renderer to perform the actual rendering of this style for a given node. This interface extends the ICloneable interface. This allows clients to obtain a persistent copy of the current state of this style. Immutable style implementations may return themselves.
See Also
- Working with styles (and their style renderers) is explained in detail in the section Visualization of Graph Elements: Styles.
Developer's Guide
Demos
- Shows how to create custom styles for nodes, edges, labels, ports, and edge arrows.
- Create a simple node style using SVG
Members
Show:
Properties
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given node 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 node and this style instance.
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(node, style)
const visual = creator.createVisual(context)readonlyabstract
See Also
Developer's Guide
Implemented in
ArrowNodeStyle.renderer, CollapsibleNodeStyleDecorator.renderer, GeneralPathNodeStyle.renderer, GroupNodeStyle.renderer, ImageNodeStyle.renderer, NodeStyleBase.renderer, RectangleNodeStyle.renderer, ShadowNodeStyleDecorator.renderer, ShapeNodeStyle.renderer, TableNodeStyle.renderer, WebGLGroupNodeStyle.renderer, WebGLImageNodeStyle.renderer, WebGLNodeStyleDecorator.renderer, WebGLShapeNodeStyle.rendererMethods
Create a clone of this object.
Create a clone of this object.
Constants
A void implementation of a node style that does nothing and behaves like an invisible style.
A void implementation of a node style that does nothing and behaves like an invisible style.
static
See Also
Developer's Guide