ParamView displays a parameter value, and switches representation as appropriate for value: A single number is shown by an EZSlider, a pair of numbers by an EZRanger, and anything else as code on an EZText.
First examples:
create a new ParamView with
parent |
the parent window or view |
bounds |
the bounds of the view |
label |
a label to display |
spec |
a controlspec for the value |
action |
an action to do when the value changes |
initVal |
an initial value |
initAction |
a boolean whether to perform the action on init. |
get and set the view's label
get and set the view's control spec
get and set the paramview's action
the 3 ezviews between which the ParamView switches
the currently shown view of these
get and set value
get and set value and do action
do the view's action
get and set the view's type: 0 is single number -> EZSlider, 1 is pair of numbers -> EZRanger, 2 is anything else
determine viewType for a given value
get and set background color