Packagecom.yworks.canvas
Classpublic class CanvasEvent
InheritanceCanvasEvent Inheritance flash.events.Event

The CanvasEvent class represents the event object passed to the event listener for events dispatched by the CanvasComponent.



Public Properties
 PropertyDefined by
  canvas : CanvasComponent
[read-only] Returns the CanvasComponent that dispatched this event.
CanvasEvent
Public Methods
 MethodDefined by
  
CanvasEvent(type:String, canvas:CanvasComponent)
CanvasEvent
Public Constants
 ConstantDefined by
  VIEWPOINT_CHANGED : String = "viewPointChanged"
[static]
CanvasEvent
  VIEWPORT_CHANGED : String = "viewPortChanged"
[static]
CanvasEvent
  ZOOM_CHANGED : String = "zoomChanged"
[static]
CanvasEvent
Property detail
canvasproperty
canvas:CanvasComponent  [read-only]

Returns the CanvasComponent that dispatched this event.

Implementation
    public function get canvas():CanvasComponent
Constructor detail
CanvasEvent()constructor
public function CanvasEvent(type:String, canvas:CanvasComponent)Parameters
type:String
 
canvas:CanvasComponent
Constant detail
VIEWPOINT_CHANGEDconstant
public static const VIEWPOINT_CHANGED:String = "viewPointChanged"

VIEWPORT_CHANGEDconstant 
public static const VIEWPORT_CHANGED:String = "viewPortChanged"

ZOOM_CHANGEDconstant 
public static const ZOOM_CHANGED:String = "zoomChanged"