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
  
clone():Event
[override]
CanvasEvent
Public Constants
 ConstantDefined By
  UPDATE_TREE : String = updateTree
[static] Dispatched when the canvas object tree is repainted
CanvasEvent
  VIEWPOINT_CHANGED : String = viewPointChanged
Deprecated: Please Use VIEW_POINT_CHANGED
[static] Constant for "viewPointChanged".
CanvasEvent
  VIEW_POINT_CHANGED : String = viewPointChanged
[static] Dispatched when the view point of a CanvasComponent changes.
CanvasEvent
  VIEWPORT_CHANGED : String = viewPortChanged
Deprecated: Please Use VIEW_PORT_CHANGED
[static] Constant for "viewPortChanged"
CanvasEvent
  VIEW_PORT_CHANGED : String = viewPortChanged
[static] Dispatched when the viewport of a CanvasComponent changes.
CanvasEvent
  ZOOM_CHANGED : String = zoomChanged
[static] Dispatched when the zoom of a CanvasComponent changes.
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
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
UPDATE_TREEConstant
public static const UPDATE_TREE:String = updateTree

Dispatched when the canvas object tree is repainted

VIEW_POINT_CHANGEDConstant 
public static const VIEW_POINT_CHANGED:String = viewPointChanged

Dispatched when the view point of a CanvasComponent changes.

VIEW_PORT_CHANGEDConstant 
public static const VIEW_PORT_CHANGED:String = viewPortChanged

Dispatched when the viewport of a CanvasComponent changes.

VIEWPOINT_CHANGEDConstant 
public static const VIEWPOINT_CHANGED:String = viewPointChanged
Deprecated: Please Use VIEW_POINT_CHANGED

Constant for "viewPointChanged".

VIEWPORT_CHANGEDConstant 
public static const VIEWPORT_CHANGED:String = viewPortChanged
Deprecated: Please Use VIEW_PORT_CHANGED

Constant for "viewPortChanged"

ZOOM_CHANGEDConstant 
public static const ZOOM_CHANGED:String = zoomChanged

Dispatched when the zoom of a CanvasComponent changes.