public final class VoidVisualCreator extends Object implements IVisualCreator
IVisualCreator
interface that does nothing.
Use INSTANCE
for methods that require non-null
IVisualCreator
implementations if you want to
have no visualization.
Modifier and Type | Field and Description |
---|---|
static VoidVisualCreator |
INSTANCE
An immutable and shareable convenience instance of the
VoidVisualCreator class. |
Constructor and Description |
---|
VoidVisualCreator() |
Modifier and Type | Method and Description |
---|---|
Node |
createVisual(IRenderContext context)
Returns
null . |
Node |
updateVisual(IRenderContext context,
Node oldVisual)
Returns
null . |
public static final VoidVisualCreator INSTANCE
VoidVisualCreator
class.public final Node createVisual(IRenderContext context)
null
.createVisual
in interface IVisualCreator
context
- The context that describes where the visual will be used.null
.IVisualCreator.updateVisual(IRenderContext, Node)
public final Node updateVisual(IRenderContext context, Node oldVisual)
null
.updateVisual
in interface IVisualCreator
context
- The context that describes where the visual will be used in.oldVisual
- The visual instance that had been returned the last time the IVisualCreator.createVisual(IRenderContext)
method was called on
this instance.oldVisual
, if this instance modified the visual, or a new visual that should replace the existing one in the
canvas object visual tree.IVisualCreator.createVisual(IRenderContext)
,
ICanvasObjectDescriptor
,
CanvasControl