Packagecom.yworks.graph.drawing
Interfacepublic interface IPortStyle extends IVisualStyle, ICloneable
Implementors DelegatingPortStyle, SimpleAbstractPortStyle, SimplePortStyle, VoidPortStyle

IVisualStyle implementation for IPort instances in an IGraph.

Implementations are responsible for rendering IPort instances in a CanvasComponent. It is up to the implementation to interpret the visual appearance of a port.

The framework uses the associated, possibly shared styleRenderer 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.



Public Properties
 PropertyDefined By
 InheritedstyleRenderer : IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
IVisualStyle
Public Methods
 MethodDefined By
 Inherited
clone():Object
Creates a clone of this instance.
ICloneable
 Inherited
install(canvas:CanvasComponent, group:ICanvasObjectGroup, modelItem:IModelItem):Array
Prepares the rendering of an IModelItem in a CanvasComponent by adding ICanvasObject's to the provided canvas.
IVisualStyle