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
  
clone():Event
[override]
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)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
CLICKConstant
public static const CLICK:String = click