public final class VoidNodeStyleRenderer extends Object implements INodeStyleRenderer
This class implements the singleton pattern. Use the shared static INSTANCE of this class instead of null
where null is not allowed. For example you cannot assign null to the Renderer
property of an INodeStyle.
| Modifier and Type | Field and Description |
|---|---|
static VoidNodeStyleRenderer |
INSTANCE
The
VoidNodeStyleRenderer singleton. |
| Modifier and Type | Method and Description |
|---|---|
IBoundsProvider |
getBoundsProvider(INode node,
INodeStyle style)
Yields the
IBoundsProvider.EMPTY that will return empty bounds. |
ILookup |
getContext(INode node,
INodeStyle style)
Yields the
ILookup.EMPTY that will not yield anything. |
IHitTestable |
getHitTestable(INode node,
INodeStyle style)
Yields the
IHitTestable.NEVER that will always report misses. |
static VoidNodeStyleRenderer |
getInstance()
Returns the
com.yworks.yfiles.common.drawing.VoidNodeStyleRenderer singleton. |
IMarqueeTestable |
getMarqueeTestable(INode node,
INodeStyle style)
Yields the
IMarqueeTestable.NEVER that will always report misses. |
IShapeGeometry |
getShapeGeometry(INode node,
INodeStyle style)
This implementation always returns the
VoidShapeGeometry instance. |
IVisibilityTestable |
getVisibilityTestable(INode node,
INodeStyle style)
Yields the
IVisibilityTestable.NEVER that will always claim invisibility. |
IVisualCreator |
getVisualCreator(INode node,
INodeStyle style)
Yields the
VoidVisualCreator.INSTANCE that will do nothing. |
public static final VoidNodeStyleRenderer INSTANCE
VoidNodeStyleRenderer singleton.public final IBoundsProvider getBoundsProvider(INode node, INodeStyle style)
IBoundsProvider.EMPTY that will return empty bounds.getBoundsProvider in interface INodeStyleRenderernode - The node to provide an instance forstyle - The style to use for the calculating the painting boundspublic final ILookup getContext(INode node, INodeStyle style)
ILookup.EMPTY that will not yield anything.getContext in interface INodeStyleRenderernode - The node to provide a context instance for.style - The style to use for the context.null lookup implementation.ILookup.EMPTY,
ILookuppublic final IHitTestable getHitTestable(INode node, INodeStyle style)
IHitTestable.NEVER that will always report misses.getHitTestable in interface INodeStyleRenderernode - The node to provide an instance forstyle - The style to use for the querying hit testsnull to indicate that the node cannot be hit tested.public static VoidNodeStyleRenderer getInstance()
com.yworks.yfiles.common.drawing.VoidNodeStyleRenderer singleton.com.yworks.yfiles.common.drawing.VoidNodeStyleRenderer singleton.public final IMarqueeTestable getMarqueeTestable(INode node, INodeStyle style)
IMarqueeTestable.NEVER that will always report misses.getMarqueeTestable in interface INodeStyleRenderernode - The node to provide an instance forstyle - The style to use for the querying marquee intersection test.public final IShapeGeometry getShapeGeometry(INode node, INodeStyle style)
VoidShapeGeometry instance.getShapeGeometry in interface INodeStyleRenderernode - The node to provide an instance forstyle - The style to use for the renderingVoidShapeGeometry instance.INodeStyleRenderer.getShapeGeometry(INode, INodeStyle)public final IVisibilityTestable getVisibilityTestable(INode node, INodeStyle style)
IVisibilityTestable.NEVER that will always claim invisibility.getVisibilityTestable in interface INodeStyleRenderernode - The node to provide an instance forstyle - The style to use for the testing the visibilitypublic final IVisualCreator getVisualCreator(INode node, INodeStyle style)
VoidVisualCreator.INSTANCE that will do nothing.getVisualCreator in interface INodeStyleRenderernode - The node to provide an instance forstyle - The style to use for the creation of the visualnull but should yield a void
implementation instead.VoidVisualCreator.INSTANCE