public interface INodeStyle extends ICloneable
INode
instances in an IGraph
.
Implementations are responsible for rendering INode
instances in a
CanvasControl
. 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.
Working with styles (and their style renderers) is explained in detail in the section Visualization of Graph Elements.
Modifier and Type | Method and Description |
---|---|
INodeStyleRenderer |
getRenderer()
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.
|
clone
INodeStyleRenderer getRenderer()
The idiom for retrieving, e.g. an IVisualCreator
implementation for a given style is: