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