Packagecom.yworks.canvas.drawing
Interfacepublic interface IVisibilityTest
Implementors AbstractStyleRenderer

Interface that is implemented for elements that can determine whether they might be visible in a given clipping rectangle.

See also

IPaintable
IDisplayObjectCreator
com.yworks.canvas.CanvasComponent
com.yworks.canvas.ICanvasObjectDescriptor
com.yworks.canvas.ICanvasObject


Public Methods
 MethodDefined By
  
Determines whether an element might intersect the visible region for a given context.
IVisibilityTest
Method Detail
isVisible()method
public function isVisible(clip:IRectangle, ctx:ICanvasContext):Boolean

Determines whether an element might intersect the visible region for a given context.

Conservative implementations can always return true.

Parameters

clip:IRectangle — The visible region clip.
 
ctx:ICanvasContext — The context to determine the visibility for.

Returns
Booleanfalse if and only if the it is safe not to paint the element because it would not affect the given clipping region.