Packageflare.vis.controls
Classpublic class AnchorControl
InheritanceAnchorControl Inheritance Control Inheritance flash.events.EventDispatcher

Interactive control for updating a layout's anchor point in response to mouse movement. This control is often used to dynamically update a focus+context distortion.



Public Properties
 PropertyDefined by
 Inheritedfilter : Function
Boolean function indicating the items considered by the control.
Control
  layout : Layout
AnchorControl
 Inheritedobject : InteractiveObject
The interactive object this control is attached to.
Control
  update : Function
Update function called when the layout anchor changes.
AnchorControl
Public Methods
 MethodDefined by
  
AnchorControl(layout:Layout = null)
Creates a new AnchorControl
AnchorControl
  
attach(obj:InteractiveObject):void
Attach this control to the given interactive object.
AnchorControl
  
detach():InteractiveObject
Detach this control.
AnchorControl
  
updateMouse(evt:Event = null):void
Causes the layout anchor to be updated according to the current mouse position.
AnchorControl
Property detail
layoutproperty
layout:Layout  [read-write]Implementation
    public function get layout():Layout
    public function set layout(value:Layout):void
updateproperty 
public var update:Function

Update function called when the layout anchor changes.

Constructor detail
AnchorControl()constructor
public function AnchorControl(layout:Layout = null)

Creates a new AnchorControl

Parameters
layout:Layout (default = null) — the layout on which to update the anchor point
Method detail
attach()method
public override function attach(obj:InteractiveObject):void

Attach this control to the given interactive object. This method will automatically detach if already attached to another object.

Parameters
obj:InteractiveObject — the display object to attach to
detach()method 
public override function detach():InteractiveObject

Detach this control.

Returns
InteractiveObject — the interactive object this control was attached to, or null if this control was not attached.
updateMouse()method 
public function updateMouse(evt:Event = null):void

Causes the layout anchor to be updated according to the current mouse position.

Parameters
evt:Event (default = null) — an optional mouse event