Packagecom.yworks.graph.drawing
Interfacepublic interface INodeStyleRenderer extends IStyleRenderer
Implementors AbstractNodeStyleRenderer, DelegatingStyleRenderer, VoidNodeStyleRenderer

Interface used by INodeStyle implementations that can be used to query the actual IDisplayObjectCreator and IBoundsProvider implementations for a node and an associated style.



Public Methods
 MethodDefined By
 Inherited
Gets an implementation of the IBoundsProvider interface that can handle the provided item and its associated style.
IStyleRenderer
 Inherited
Gets a temporary context instance that can be used to query additional information for the item's style.
IStyleRenderer
 Inherited
Gets an implementation of IDisplayObjectCreator that will create the display object for the user object.
IStyleRenderer
 Inherited
Gets an implementation of the IHitTestable interface that can handle the provided item and its associated style.
IStyleRenderer
 Inherited
Gets an implementation of the IMarqueeTestable interface that can handle the provided item and its associated style.
IStyleRenderer
  
Gets an implementation of the IShapeGeometry interface that can handle the provided node and its associated style.
INodeStyleRenderer
Method Detail
getShapeGeometry()method
public function getShapeGeometry(node:INode, style:INodeStyle):IShapeGeometry

Gets an implementation of the IShapeGeometry interface that can handle the provided node and its associated style.

This method may return a flyweight implementation.

Parameters

node:INode — The node to provide an instance for
 
style:INodeStyle — The style to use for the painting

Returns
IShapeGeometry — An implementation that may be used to subsequently query geometry information from. Clients should not cache this instance and must always call this method immediately before using the value returned. This enables the use of the flyweight design pattern for implementations