ParamsListener
Extends:
listen to user interactions with ports in OpParampanel
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
panelId: * |
Private Members | ||
private |
|
|
private |
_portsIn: *[] |
|
private |
_portsOut: *[] |
|
private |
_watchAnimPorts: *[] |
|
private |
_watchColorPicker: *[] |
|
private |
|
|
private |
_watchPorts: *[] |
|
private |
_watchStrings: *[] |
Method Summary
Public Methods | ||
public |
emitChangeEvent(port: *) |
|
public |
init(options: *) |
|
public |
initPortClickListener(ports: *, index: *, panelid: *, dirStr: *) |
|
public |
initPortInputListener(ports: *, index: *, panelid: *) |
|
public |
|
|
public |
setPortAnimated(op: *, index: *, panelid: *, targetState: *, defaultValue: *) |
|
public |
|
|
public |
watchColorPickerPort(thePort: *, panelid: *, idx: *) |
Private Methods | ||
private |
_formatNumber(n: *): * |
|
private |
|
Inherited Summary
From class Events | ||
public |
off: * |
|
public |
on: * |
|
private |
_eventCallbacks: {} |
|
private |
_listeners: {} |
|
private |
_log: * |
|
private |
_logEvents: boolean |
|
private |
_logName: string |
|
public |
addEventListener(which: *, cb: *, idPrefix: string): string add event listener |
|
public |
emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *) emit event |
|
public |
hasEventListener(id: *, cb: *): boolean check event listener registration |
|
public |
hasListenerForEventName(eventName: *): boolean check event listener by name |
|
public |
logEvents(enabled: boolean, logName: string) enable/disable logging of events for the class |
|
public |
removeEventListener(id: *, cb: *) rempve event listener registration |
Public Constructors
Public Members
public panelId: * source
Private Members
private _doFormatNumbers: * source
private _portsIn: *[] source
private _portsOut: *[] source
private _watchAnimPorts: *[] source
private _watchColorPicker: *[] source
private _watchPortVisualizer: * source
private _watchPorts: *[] source
private _watchStrings: *[] source
Public Methods
public emitChangeEvent(port: *) source
Params:
Name | Type | Attribute | Description |
port | * |
public init(options: *) source
Params:
Name | Type | Attribute | Description |
options | * |
public initPortClickListener(ports: *, index: *, panelid: *, dirStr: *) source
Params:
Name | Type | Attribute | Description |
ports | * | ||
index | * | ||
panelid | * | ||
dirStr | * |
public initPortInputListener(ports: *, index: *, panelid: *) source
Params:
Name | Type | Attribute | Description |
ports | * | ||
index | * | ||
panelid | * |
public removePorts() source
public setPortAnimated(op: *, index: *, panelid: *, targetState: *, defaultValue: *) source
Params:
Name | Type | Attribute | Description |
op | * | ||
index | * | ||
panelid | * | ||
targetState | * | ||
defaultValue | * |
public valueChangerInitSliders() source
public watchColorPickerPort(thePort: *, panelid: *, idx: *) source
Params:
Name | Type | Attribute | Description |
thePort | * | ||
panelid | * | ||
idx | * |