Packagecom.yworks.canvas.drawing
Classpublic class BoolHitTestable
InheritanceBoolHitTestable Inheritance Object
Implements IHitTestable

A HitTestable that always returns the boolean value passed to the constructor.



Public Methods
 MethodDefined By
  
BoolHitTestable(b:Boolean)
Creates an instance which always returns the passed value.
BoolHitTestable
  
isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean
Always returns the boolean value passed in the constructor function.
BoolHitTestable
Constructor Detail
BoolHitTestable()Constructor
public function BoolHitTestable(b:Boolean)

Creates an instance which always returns the passed value.

Parameters
b:Boolean — The boolean value to return.
Method Detail
isHit()method
public function isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean

Always returns the boolean value passed in the constructor function.

Parameters

x:Number — Not used.
 
y:Number — Not used.
 
ctx:ICanvasContext — Not used.

Returns
Boolean — The boolean value passed in the constructor.