Package | com.yworks.canvas.model |
Interface | public interface IObstacleProvider |
Implementors | GraphObstacleProvider, PathBasedEdgeStyleRenderer |
BridgeManager
to add obstacles to the
list of obstacles that need to be taken into account during rendering.
Typically the ILookup
context of styles will yield an implementation
of this interface.
Method | Defined By | ||
---|---|---|---|
Yield the obstacles that the item that provided this instance
would add to the scene for the given IPaintContext. | IObstacleProvider |
getObstacles | () | method |
public function getObstacles(canvasContext:IPaintContext):GeneralPath
Yield the obstacles that the item that provided this instance
would add to the scene for the given IPaintContext
.
The implementation should only yield a non-null
GeneralPath
if it may be visible in the provided
IPaintContext
.
Parameters
canvasContext:IPaintContext — The context for which the obstacles are queried.
|
GeneralPath — A path that describes the obstacles or null if there
are no obstacles for the given context.
|