Home Reference Source
public class | source

ParamsListener

Extends:

Events → ParamsListener

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
private
private
private
private

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
private
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 constructor() source

Override:

Events#constructor

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:

NameTypeAttributeDescription
port *

public init(options: *) source

Params:

NameTypeAttributeDescription
options *

public initPortClickListener(ports: *, index: *, panelid: *, dirStr: *) source

Params:

NameTypeAttributeDescription
ports *
index *
panelid *
dirStr *

public initPortInputListener(ports: *, index: *, panelid: *) source

Params:

NameTypeAttributeDescription
ports *
index *
panelid *

public removePorts() source

public setPortAnimated(op: *, index: *, panelid: *, targetState: *, defaultValue: *) source

Params:

NameTypeAttributeDescription
op *
index *
panelid *
targetState *
defaultValue *

public valueChangerInitSliders() source

public watchColorPickerPort(thePort: *, panelid: *, idx: *) source

Params:

NameTypeAttributeDescription
thePort *
panelid *
idx *

Private Methods

private _formatNumber(n: *): * source

Params:

NameTypeAttributeDescription
n *

Return:

*

private _updateWatchPorts() source