Packagecom.yworks.canvas.input
Classpublic class ClickEvent
InheritanceClickEvent Inheritance flash.events.Event

This event is dispatched by the ClickInputMode when the mouse is clicked.



Public Properties
 PropertyDefined by
  alt : Boolean
[read-only] Returns whether the alt key was pressed while the click event occured.
ClickEvent
  clickPoint : IPoint
[read-only] Get the clickPoint in world coordinates.
ClickEvent
  context : IInputModeContext
[read-only] Gets the context in which the click occured.
ClickEvent
  ctrl : Boolean
[read-only] Returns whether the ctrl key was pressed while the click event occured.
ClickEvent
  shift : Boolean
[read-only] Returns whether the shift key was pressed while the click event occured.
ClickEvent
Public Methods
 MethodDefined by
  
ClickEvent(type:String, clickPoint:IPoint, ctrl:Boolean, alt:Boolean, shift:Boolean, context:IInputModeContext = null)
Constructor
ClickEvent
Public Constants
 ConstantDefined by
  CLICK : String = "click"
[static]
ClickEvent
Property detail
altproperty
alt:Boolean  [read-only]

Returns whether the alt key was pressed while the click event occured.

Implementation
    public function get alt():Boolean
clickPointproperty 
clickPoint:IPoint  [read-only]

Get the clickPoint in world coordinates.

Implementation
    public function get clickPoint():IPoint
contextproperty 
context:IInputModeContext  [read-only]

Gets the context in which the click occured.

Implementation
    public function get context():IInputModeContext
ctrlproperty 
ctrl:Boolean  [read-only]

Returns whether the ctrl key was pressed while the click event occured.

Implementation
    public function get ctrl():Boolean
shiftproperty 
shift:Boolean  [read-only]

Returns whether the shift key was pressed while the click event occured.

Implementation
    public function get shift():Boolean
Constructor detail
ClickEvent()constructor
public function ClickEvent(type:String, clickPoint:IPoint, ctrl:Boolean, alt:Boolean, shift:Boolean, context:IInputModeContext = null)

Constructor

Parameters
type:String — The Event type.
 
clickPoint:IPoint — The click point in world coordinates
 
ctrl:Booleantrue if the ctrl key was pressed.
 
alt:Booleantrue if the alt key was pressed.
 
shift:Booleantrue if the shift key was pressed.
 
context:IInputModeContext (default = null)
Constant detail
CLICKconstant
public static const CLICK:String = "click"