MView:
Filter:
Classes (extension) | Libraries > JITLib

MView : JITView : Object
ExtensionExtension

a JITView for numbers
Source: MView.sc

Description

A view for displaying and editing objects in general und numbers in particular. MView will display numbers as sliders or multislider fields. Intended for guis which have to show very different objects at different times.

Class Methods

Inherited class methods

Instance Methods

.number

shortcut to switch to number mode

.doEnter(uv, mod: 0)

run enterAction

Arguments:

uv

the user view

mod

any modifier keys held while activating

.getUni

get current value, unmapped into unipolar range.

.setUni(paramName, normVal)

set current value to unmapped unipolar value, using dict[\myspec] to map input value into spec range.

.mouseDownNumber(uv, x, y)

the action performed on mouseDown - determines how value will be changed: if value is a single number, set value directly; if single point in array is clicked on, set that single value only; if left/right border is clicked, move that border and scale inner values; if clicked somewhere else in value block display, move all values.

.mouseMoveNumber(uv, x, y, mod)

changes value by one of the four methods set in mouseDownNumber.

.scaleMin(normVal)

scale all values in list by moving (normalized) minval

.scaleMax(normVal)

scale all values in list by moving (normalized) maxval

.setNormNumByIndex(index, normval)

when value is an array of numbers, change value at index only.

.drawNumber

the method that draws numerical display on the userview.

Inherited instance methods

Undocumented instance methods

.cannotDrawNumber

.drawGhost

.drawMultiNumber

.drawSingleNumber

.get

.set(val)

.shiftRange(normDiff: 0, mode: 'stop')

.zone

Examples