Packagecom.yworks.canvas.input.snapLines
Classpublic class SnapContextEvent
InheritanceSnapContextEvent Inheritance flash.events.Event
Subclasses CollectSnapLinesEvent, CollectSnapResultEvent

The SnapContextEvent class represents the event object passed to the event listener for events dispatched by the SnapContext.

See also

SnapContext


Public Methods
 MethodDefined By
  
SnapContextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance of the SnapContextEvent class.
SnapContextEvent
  
clone():Event
[override]
SnapContextEvent
Public Constants
 ConstantDefined By
  CLEANED_UP : String = cleanedUp
[static] Dispatched when the SnapContext has cleaned up itself.
SnapContextEvent
  INITIALIZED : String = initialized
[static] Dispatched when a drag in the SnapContext has been initialized.
SnapContextEvent
  INITIALIZING : String = initializing
[static] Dispatched when the SnapContext has started to initialize a drag.
SnapContextEvent
Constructor Detail
SnapContextEvent()Constructor
public function SnapContextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new instance of the SnapContextEvent class.

Parameters
type:String — The event type.
 
bubbles:Boolean (default = false) — Whether the event bubbles.
 
cancelable:Boolean (default = false) — Whether the event is cancelable.
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
CLEANED_UPConstant
public static const CLEANED_UP:String = cleanedUp

Dispatched when the SnapContext has cleaned up itself.

INITIALIZEDConstant 
public static const INITIALIZED:String = initialized

Dispatched when a drag in the SnapContext has been initialized.

INITIALIZINGConstant 
public static const INITIALIZING:String = initializing

Dispatched when the SnapContext has started to initialize a drag.