Package | com.yworks.canvas.drawing |
Class | public class RectangleMarqueeTestable |
Inheritance | RectangleMarqueeTestable Object |
Implements | IMarqueeTestable |
IMarqueeTestable
implementation
that checks for intersection with an IRectangle
.
Method | Defined By | ||
---|---|---|---|
RectangleMarqueeTestable(rectangle:IRectangle)
Creates an instance using the given rectangle to check for intersection
with the marquee box. | RectangleMarqueeTestable | ||
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. | RectangleMarqueeTestable |
RectangleMarqueeTestable | () | Constructor |
public function RectangleMarqueeTestable(rectangle:IRectangle)
Creates an instance using the given rectangle to check for intersection with the marquee box.
Parametersrectangle:IRectangle |
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
|
Boolean — true if the item is considered to be captured by the marquee
|