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

MView
ExtensionExtension

a JITView for numbers

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.

Instance Methods

.number

shortcut to switch to number mode

.doEnter

run enterAction

Arguments:

uv

the user view

mod

any modifier keys held while activating

.getUni

get current value, unmapped into unipolar range.

.setUni

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

.mouseDownNumber

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

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

.scaleMin

scale all values in list by moving (normalized) minval

.scaleMax

scale all values in list by moving (normalized) maxval

.setNormNumByIndex

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

.drawNumber

the method that draws numerical display on the userview.

Examples