Packagecom.yworks.graph.drawing.common
Classpublic class VoidLabelStyleRenderer
InheritanceVoidLabelStyleRenderer Inheritance AbstractVoidStyleRenderer Inheritance Object
Implements ILabelStyleRenderer

A void implementation of a label 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 ILabelStyle.



Public Properties
 PropertyDefined By
  instance : VoidLabelStyleRenderer
[static] [read-only] The static shared instance.
VoidLabelStyleRenderer
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
  
Yields Size.EMPTY
VoidLabelStyleRenderer
Property Detail
instanceproperty
instance:VoidLabelStyleRenderer  [read-only]

The static shared instance.


Implementation
    public static function get instance():VoidLabelStyleRenderer
Method Detail
getPreferredSize()method
public function getPreferredSize(label:ILabel, style:ILabelStyle):ISize

Yields Size.EMPTY

Parameters

label:ILabel
 
style:ILabelStyle

Returns
ISize — Size.EMPTY