public interface IPortStyle extends ICloneable
IPort
instances in an IGraph
.
Implementations are responsible for rendering IPort
instances in a
CanvasControl
. It is up to the implementation to interpret the visual appearance of a
port. The framework uses the associated, possibly shared Renderer
to perform the actual rendering
of this style for a given port. 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 |
---|---|
IPortStyleRenderer |
getRenderer()
Gets the renderer implementation that can be queried for implementations that provide details about the visual
appearance and visual behavior for a given port and this style instance.
|
clone
IPortStyleRenderer getRenderer()
The idiom for retrieving, e.g. an IVisualCreator
implementation for a given style is: