| Package | com.asterisq.constellation.behaviors |
| Class | public class DraggingBehavior |
| Inheritance | DraggingBehavior Behavior flash.events.EventDispatcher |
com.asterisq.constellation.renderers.IDraggableNodeRenderer
interface.
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new dragging behavior.
| DraggingBehavior | ||
|
affectsAcceleration():Boolean
Indicates whether this class affects node renderers' acceleration.
| DraggingBehavior | ||
![]() |
affectsNodeRenderer(nr:INodeRenderer):Boolean
Determines whether this behavior affects the given node renderer.
| Behavior | |
|
affectsPosition():Boolean
Indicates whether this class affects node renderers' position.
| DraggingBehavior | ||
![]() |
affectsVelocity():Boolean
Indicates whether this class affects node renderers' velocity.
| Behavior | |
![]() |
[static]
Creates an IBehavior instance and initializes it with the given XML data.
| Behavior | |
![]() |
stepEnd():void
Method called at the end of a step.
| Behavior | |
![]() |
stepStart():void
Method called at the beginning of a step.
| Behavior | |
|
Modifies the given node renderer's acceleration.
| DraggingBehavior | ||
|
Modifies the given node renderer's position.
| DraggingBehavior | ||
![]() |
Modifies the given node renderer's velocity.
| Behavior | |
| DraggingBehavior | () | constructor |
public function DraggingBehavior()Creates a new dragging behavior.
| affectsAcceleration | () | method |
public override function affectsAcceleration():BooleanIndicates whether this class affects node renderers' acceleration. This function must return true if this behavior affects acceleration.
ReturnsBoolean |
| affectsPosition | () | method |
public override function affectsPosition():BooleanIndicates whether this class affects node renderers' position. This function must return true if this behavior affects position.
ReturnsBoolean |
| updateAcceleration | () | method |
public override function updateAcceleration(nr:INodeRenderer):INodeRenderer
Modifies the given node renderer's acceleration. This method will never be
called if affectsAcceleration() doesn't return true. This
method should be overridden to affect the given node renderer's
acceleration.
nr:INodeRenderer |
INodeRenderer |
| updatePosition | () | method |
public override function updatePosition(nr:INodeRenderer):INodeRenderer
Modifies the given node renderer's position. This method will never be
called if affectsPosition() doesn't return true. This
method should be overridden to affect the given node renderer's position.
nr:INodeRenderer |
INodeRenderer |