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