Package | com.yworks.graph.drawing |
Interface | public interface INodeStyleRenderer extends IStyleRenderer |
Implementors | AbstractNodeStyleRenderer, DelegatingStyleRenderer, VoidNodeStyleRenderer |
INodeStyle
implementations
that can be used to query the actual IDisplayObjectCreator
and
IBoundsProvider
implementations for a node
and an associated style.
Method | Defined By | ||
---|---|---|---|
Gets an implementation of the IBoundsProvider interface that can
handle the provided item and its associated style. | IStyleRenderer | ||
Gets a temporary context instance that can be used to query additional information
for the item's style. | IStyleRenderer | ||
Gets an implementation of IDisplayObjectCreator that will create
the display object for the user object. | IStyleRenderer | ||
Gets an implementation of the IHitTestable interface that can
handle the provided item and its associated style. | IStyleRenderer | ||
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 |
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
|
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
|