Packagecom.yworks.canvas.model
Interfacepublic interface IObstacleProvider
Implementors GraphObstacleProvider, PathBasedEdgeStyleRenderer

The interface that is used by the 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.



Public Methods
 MethodDefined By
  
Yield the obstacles that the item that provided this instance would add to the scene for the given IPaintContext.
IObstacleProvider
Method Detail
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.

Returns
GeneralPath — A path that describes the obstacles or null if there are no obstacles for the given context.