public interface INodeStyleRenderer
INodeStyle
implementations that can be used to query the actual IVisualCreator
,
IBoundsProvider
, IHitTestable
, and IMarqueeTestable
implementations for a node and an
associated style.
Implementations of this interface should be designed to be sharable between multiple style instances and should therefore not contain style specific state.
INodeStyle
,
INode
,
IEdgeStyleRenderer
,
ILabelStyleRenderer
,
IPortStyleRenderer
Modifier and Type | Method and Description |
---|---|
IBoundsProvider |
getBoundsProvider(INode node,
INodeStyle style)
Gets an implementation of the
IBoundsProvider interface that can handle the provided node and its associated
style. |
ILookup |
getContext(INode node,
INodeStyle style)
Gets a temporary context instance that can be used to query additional information for the node's style.
|
IHitTestable |
getHitTestable(INode node,
INodeStyle style)
Gets an implementation of the
IHitTestable interface that can handle the provided node and its associated
style. |
IMarqueeTestable |
getMarqueeTestable(INode node,
INodeStyle style)
Gets an implementation of the
IMarqueeTestable interface that can handle the provided node and its associated
style. |
IShapeGeometry |
getShapeGeometry(INode node,
INodeStyle style)
Gets an implementation of the
IShapeGeometry interface that can handle the provided node and its associated
style. |
IVisibilityTestable |
getVisibilityTestable(INode node,
INodeStyle style)
Gets an implementation of the
IVisibilityTestable interface that can handle the provided node and its associated
style. |
IVisualCreator |
getVisualCreator(INode node,
INodeStyle style)
Gets an implementation of the
IVisualCreator interface that can handle the provided node and its associated
style. |
IBoundsProvider getBoundsProvider(INode node, INodeStyle style)
IBoundsProvider
interface that can handle the provided node and its associated
style.
This method may return a flyweight implementation.
node
- The node to provide an instance forstyle
- The style to use for the calculating the painting boundsILookup getContext(INode node, INodeStyle style)
Implementations may return ILookup.EMPTY
if they don't support this, but may not return null
.
node
- The node to provide a context instance for.style
- The style to use for the context.null
lookup implementation.ILookup.EMPTY
,
ILookup
IHitTestable getHitTestable(INode node, INodeStyle style)
IHitTestable
interface that can handle the provided node and its associated
style.
This method may return a flyweight implementation.
node
- 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.IMarqueeTestable getMarqueeTestable(INode node, INodeStyle style)
IMarqueeTestable
interface that can handle the provided node and its associated
style.
This method may return a flyweight implementation.
node
- The node to provide an instance forstyle
- The style to use for the querying marquee intersection test.IShapeGeometry getShapeGeometry(INode node, INodeStyle style)
IShapeGeometry
interface that can handle the provided node and its associated
style.
This method may return a flyweight implementation.
node
- The node to provide an instance forstyle
- The style to use for the renderingIVisibilityTestable getVisibilityTestable(INode node, INodeStyle style)
IVisibilityTestable
interface that can handle the provided node and its associated
style.
This method may return a flyweight implementation.
node
- The node to provide an instance forstyle
- The style to use for the testing the visibilityIVisualCreator getVisualCreator(INode node, INodeStyle style)
IVisualCreator
interface that can handle the provided node and its associated
style.
This method may return a flyweight implementation, but never null
.
node
- 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