Packagecom.yworks.graph.drawing.common
Classpublic class VoidNodeStyleRenderer
InheritanceVoidNodeStyleRenderer Inheritance AbstractVoidStyleRenderer Inheritance Object
Implements INodeStyleRenderer

A void implementation of a node style renderer that does nothing.

Use the shared static instance of this class instead of null where null is not allowed. For example you cannot assign null to the styleRenderer property of an INodeStyle.



Public Properties
 PropertyDefined By
  instance : VoidNodeStyleRenderer
[static] [read-only] The static shared instance.
VoidNodeStyleRenderer
Public Methods
 MethodDefined By
 Inherited
Returns BoundsProvider.EMPTY, which always returns empty bounds.
AbstractVoidStyleRenderer
 Inherited
Returns com.yworks.support.Lookups#EMPTY.
AbstractVoidStyleRenderer
 Inherited
Returns VoidDisplayObjectCreator.instance, which won't draw anything.
AbstractVoidStyleRenderer
 Inherited
Returns HitTestables.getNever().
AbstractVoidStyleRenderer
 Inherited
Returns MarqueeTestable.never
AbstractVoidStyleRenderer
  
Always returns VoidShapeGeometry.instance.
VoidNodeStyleRenderer
Property Detail
instanceproperty
instance:VoidNodeStyleRenderer  [read-only]

The static shared instance.


Implementation
    public static function get instance():VoidNodeStyleRenderer
Method Detail
getShapeGeometry()method
public function getShapeGeometry(node:INode, style:INodeStyle):IShapeGeometry

Always returns VoidShapeGeometry.instance.

Parameters

node:INode
 
style:INodeStyle

Returns
IShapeGeometry — VoidShapeGeometry.instance

See also