Packagecom.yworks.canvas.input
Classpublic class CanvasContextMenuEvent
InheritanceCanvasContextMenuEvent Inheritance flash.events.ContextMenuEvent

This events wraps ContextMenuEvents and includes additional properties related to the CanvasComponent.



Public Properties
 PropertyDefined By
  context : IInputModeContext
[read-only] The context this event was dispatched from.
CanvasContextMenuEvent
  viewCoords : IPoint
[read-only] The view coordinates at which the event occurred.
CanvasContextMenuEvent
  viewX : Number
[read-only] The horizontal view coordinate at which the event occurred.
CanvasContextMenuEvent
  viewY : Number
[read-only] The vertical view coordinate at which the event occurred.
CanvasContextMenuEvent
  worldCoords : IPoint
[read-only] The world coordinates at which the event occurred.
CanvasContextMenuEvent
  worldX : Number
[read-only] The horizontal view coordinate at which the event occurred.
CanvasContextMenuEvent
  worldY : Number
[read-only] The vertical view coordinate at which the event occurred.
CanvasContextMenuEvent
Public Methods
 MethodDefined By
  
CanvasContextMenuEvent(evt:ContextMenuEvent, viewCoords:IPoint, worldCoords:IPoint, context:IInputModeContext)
CanvasContextMenuEvent
  
clone():Event
[override]
CanvasContextMenuEvent
Public Constants
 ConstantDefined By
  MENU_SELECT : String = menuSelect
[static]
CanvasContextMenuEvent
Property Detail
contextproperty
context:IInputModeContext  [read-only]

The context this event was dispatched from.


Implementation
    public function get context():IInputModeContext
viewCoordsproperty 
viewCoords:IPoint  [read-only]

The view coordinates at which the event occurred.


Implementation
    public function get viewCoords():IPoint
viewXproperty 
viewX:Number  [read-only]

The horizontal view coordinate at which the event occurred.


Implementation
    public function get viewX():Number
viewYproperty 
viewY:Number  [read-only]

The vertical view coordinate at which the event occurred.


Implementation
    public function get viewY():Number
worldCoordsproperty 
worldCoords:IPoint  [read-only]

The world coordinates at which the event occurred.


Implementation
    public function get worldCoords():IPoint
worldXproperty 
worldX:Number  [read-only]

The horizontal view coordinate at which the event occurred.


Implementation
    public function get worldX():Number
worldYproperty 
worldY:Number  [read-only]

The vertical view coordinate at which the event occurred.


Implementation
    public function get worldY():Number
Constructor Detail
CanvasContextMenuEvent()Constructor
public function CanvasContextMenuEvent(evt:ContextMenuEvent, viewCoords:IPoint, worldCoords:IPoint, context:IInputModeContext)



Parameters
evt:ContextMenuEvent
 
viewCoords:IPoint
 
worldCoords:IPoint
 
context:IInputModeContext
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
MENU_SELECTConstant
public static const MENU_SELECT:String = menuSelect