Packagede.popforge.fui.controls
Classpublic class Knob
InheritanceKnob Inheritance FuiComponent Inheritance flash.display.Sprite
ImplementsIParameterBindable

The Knob class represents a simple knob.



Public Properties
 PropertyDefined by
 Inheritedcols : uint
The columns of the component.
FuiComponent
 Inheritedrows : uint
The rows of the component.
FuiComponent
 Inheritedskin : IFuiSkin
The skin used to render this component.
FuiComponent
 Inheritedtag : XML
The XML tag that has been used to define this component.
FuiComponent
Protected Properties
 PropertyDefined by
 Inherited_cols : uint
The columns of the component in tiles.
FuiComponent
  grip : DisplayObject
Knob
  mouseOrigin : Number
Knob
  parameter : Parameter
Knob
 Inherited_rows : uint
The rows of the component in tiles.
FuiComponent
 Inherited_tag : XML
The tag that has been used to define this component.
FuiComponent
 InheritedtargetHeight : uint
The height in pixels (_rows * tileSize).
FuiComponent
 InheritedtargetWidth : uint
The width in pixels (_cols * tileSize).
FuiComponent
 InheritedtileSize : uint
The tile size used to render this component.
FuiComponent
  valueOrigin : Number
Knob
Public Methods
 MethodDefined by
  
connect(parameter:Parameter):void
Knob
  
disconnect():void
Knob
  
dispose():void
Knob
  
toString():String
Knob
Protected Methods
 MethodDefined by
  
build():void
Knob
 Inherited
debugBounds():void
Draws the bounds of the component given by tile size and components size in tiles.
FuiComponent
 Inherited
Masks the component using the exact width and height calculated using the tile size and components size in tiles.
FuiComponent
  
onMouseDown(event:MouseEvent):void
Knob
  
onParameterChanged(parameter:Parameter, oldValue:*, newValue:*):void
Knob
  
onStageMouseMove(event:MouseEvent):void
Knob
  
onStageMouseUp(event:MouseEvent):void
Knob
  
Knob
  
valueToRotation(normalizedValue:Number):Number
Knob
Property detail
gripproperty
protected var grip:DisplayObject
mouseOriginproperty 
protected var mouseOrigin:Number
parameterproperty 
protected var parameter:Parameter
valueOriginproperty 
protected var valueOrigin:Number
Method detail
build()method
protected override function build():void
connect()method 
public function connect(parameter:Parameter):voidParameters
parameter:Parameter
disconnect()method 
public function disconnect():void
dispose()method 
public override function dispose():void
onMouseDown()method 
protected function onMouseDown(event:MouseEvent):voidParameters
event:MouseEvent
onParameterChanged()method 
protected function onParameterChanged(parameter:Parameter, oldValue:*, newValue:*):voidParameters
parameter:Parameter
 
oldValue:*
 
newValue:*
onStageMouseMove()method 
protected function onStageMouseMove(event:MouseEvent):voidParameters
event:MouseEvent
onStageMouseUp()method 
protected function onStageMouseUp(event:MouseEvent):voidParameters
event:MouseEvent
releaseParameter()method 
protected function releaseParameter():void
toString()method 
public override function toString():String

Returns
String
valueToRotation()method 
protected function valueToRotation(normalizedValue:Number):NumberParameters
normalizedValue:Number

Returns
Number