public final class VoidEdgeStyleRenderer extends Object implements IEdgeStyleRenderer
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 IEdgeStyle.
| Modifier and Type | Field and Description |
|---|---|
static VoidEdgeStyleRenderer |
INSTANCE
The
VoidEdgeStyleRenderer singleton. |
| Modifier and Type | Method and Description |
|---|---|
IBoundsProvider |
getBoundsProvider(IEdge edge,
IEdgeStyle style)
Yields the
IBoundsProvider.EMPTY that will return empty bounds. |
ILookup |
getContext(IEdge edge,
IEdgeStyle style)
Yields the
ILookup.EMPTY that will not yield anything. |
IHitTestable |
getHitTestable(IEdge edge,
IEdgeStyle style)
Yields the
IHitTestable.NEVER that will always report misses. |
static VoidEdgeStyleRenderer |
getInstance()
Returns the
com.yworks.yfiles.common.drawing.VoidEdgeStyleRenderer singleton. |
IMarqueeTestable |
getMarqueeTestable(IEdge edge,
IEdgeStyle style)
Yields the
IMarqueeTestable.NEVER that will always report misses. |
IPathGeometry |
getPathGeometry(IEdge edge,
IEdgeStyle style)
This method always returns the
VoidPathGeometry instance. |
IVisibilityTestable |
getVisibilityTestable(IEdge edge,
IEdgeStyle style)
Yields the
IVisibilityTestable.NEVER that will always claim invisibility. |
IVisualCreator |
getVisualCreator(IEdge edge,
IEdgeStyle style)
Yields the
VoidVisualCreator.INSTANCE that will do nothing. |
public static final VoidEdgeStyleRenderer INSTANCE
VoidEdgeStyleRenderer singleton.public final IBoundsProvider getBoundsProvider(IEdge edge, IEdgeStyle style)
IBoundsProvider.EMPTY that will return empty bounds.getBoundsProvider in interface IEdgeStyleRendereredge - The edge to provide an instance forstyle - The style to use for the calculating the painting boundspublic final ILookup getContext(IEdge edge, IEdgeStyle style)
ILookup.EMPTY that will not yield anything.getContext in interface IEdgeStyleRendereredge - The edge to provide a context instance for.style - The style to use for the context.null lookup implementation.ILookup.EMPTY,
ILookuppublic final IHitTestable getHitTestable(IEdge edge, IEdgeStyle style)
IHitTestable.NEVER that will always report misses.getHitTestable in interface IEdgeStyleRendereredge - The edge to provide an instance forstyle - The style to use for the querying hit testsnull to indicate that the edge cannot be hit tested.public static VoidEdgeStyleRenderer getInstance()
com.yworks.yfiles.common.drawing.VoidEdgeStyleRenderer singleton.com.yworks.yfiles.common.drawing.VoidEdgeStyleRenderer singleton.public final IMarqueeTestable getMarqueeTestable(IEdge edge, IEdgeStyle style)
IMarqueeTestable.NEVER that will always report misses.getMarqueeTestable in interface IEdgeStyleRendereredge - The edge to provide an instance forstyle - The style to use for the querying marquee intersection test.public final IPathGeometry getPathGeometry(IEdge edge, IEdgeStyle style)
VoidPathGeometry instance.getPathGeometry in interface IEdgeStyleRendereredge - The edge to provide an instance forstyle - The style to use for the renderingVoidPathGeometry instance.IEdgeStyleRenderer.getPathGeometry(IEdge, IEdgeStyle)public final IVisibilityTestable getVisibilityTestable(IEdge edge, IEdgeStyle style)
IVisibilityTestable.NEVER that will always claim invisibility.getVisibilityTestable in interface IEdgeStyleRendereredge - The edge to provide an instance forstyle - The style to use for the testing the visibilitypublic final IVisualCreator getVisualCreator(IEdge edge, IEdgeStyle style)
VoidVisualCreator.INSTANCE that will do nothing.getVisualCreator in interface IEdgeStyleRendereredge - The edge to provide an instance forstyle - The style to use for the creation of the visualnull but should yield a void
implementation instead.VoidVisualCreator.INSTANCE