Package | com.yworks.canvas.drawing |
Class | public class MarqueeTestable |
Inheritance | MarqueeTestable Object |
Implements | IMarqueeTestable |
IMarqueeTestable
interface that provide two default instances.
Property | Defined By | ||
---|---|---|---|
always : IMarqueeTestable [static] [read-only]
An implementation that always yields true. | MarqueeTestable | ||
never : IMarqueeTestable [static] [read-only]
An implementation that always yields false. | MarqueeTestable |
Method | Defined By | ||
---|---|---|---|
MarqueeTestable(inBox:Boolean)
Instances of this class shouldn't be created by clients. | MarqueeTestable | ||
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. | MarqueeTestable |
always | property |
always:IMarqueeTestable
[read-only]
An implementation that always yields true
.
public static function get always():IMarqueeTestable
never | property |
never:IMarqueeTestable
[read-only]
An implementation that always yields false
.
public static function get never():IMarqueeTestable
MarqueeTestable | () | Constructor |
public function MarqueeTestable(inBox:Boolean)
Instances of this class shouldn't be created by clients.
Use the static shared instances always
and never
instead.
inBox:Boolean |
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
|