Packagecom.yworks.canvas.drawing
Interfacepublic interface IMarqueeTestable
ImplementorsAbstractStyleRenderer, DefaultPortCandidateDescriptor, RectangleMarqueeTestable, ShapePaintable

Interface that is used to test whether a rendered item is deemed to be inside a rectangular marquee selection.



Public Methods
 MethodDefined by
  
isInBox(box:IRectangle, ctx:ICanvasContext):Boolean
Returns true if the corresponding item is considered to intersect the given rectangular box.
This method may return false if the item cannot be selected using a selection marquee or optionally if the item is only partially contained within the box.
IMarqueeTestable
Method detail
isInBox()method
public function isInBox(box:IRectangle, ctx:ICanvasContext):Boolean

Returns true if the corresponding item is considered to intersect the given rectangular box.
This method may return false if the item cannot be selected using a selection marquee or optionally if the item is only partially contained within the box.

Parameters
box:IRectangle — The box describing the marquee's bounds
 
ctx:ICanvasContext — The current canvas context

Returns
Booleantrue if the item is considered to be captured by the marquee