| Package | flare.vis.controls |
| Class | public class AnchorControl |
| Inheritance | AnchorControl Control flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
![]() | filter : Function Boolean function indicating the items considered by the control.
| Control | |
| layout : Layout | AnchorControl | ||
![]() | object : InteractiveObject The interactive object this control is attached to.
| Control | |
| update : Function Update function called when the layout anchor changes.
| AnchorControl | ||
| Method | Defined 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 | ||
| layout | property |
layout:Layout [read-write]Implementation
public function get layout():Layout
public function set layout(value:Layout):void
| update | property |
public var update:FunctionUpdate function called when the layout anchor changes.
| AnchorControl | () | constructor |
public function AnchorControl(layout:Layout = null)Creates a new AnchorControl
Parameterslayout:Layout (default = null) — the layout on which to update the anchor point
|
| attach | () | method |
public override function attach(obj:InteractiveObject):voidAttach this control to the given interactive object. This method will automatically detach if already attached to another object.
Parametersobj:InteractiveObject — the display object to attach to
|
| detach | () | method |
public override function detach():InteractiveObjectDetach this control.
ReturnsInteractiveObject — the interactive object this control was attached to,
or null if this control was not attached.
|
| updateMouse | () | method |
public function updateMouse(evt:Event = null):voidCauses the layout anchor to be updated according to the current mouse position.
Parametersevt:Event (default = null) — an optional mouse event
|