In our implementation, potentiometers are subclasses
of jog knobs (FISJog).
The basic difference is that we expose the current value of the
knob (accessed using getVal()and
setVal()), and also
impose limits on the value, as opposed to the jog in which we do
not show the value publically (since the value/knob position is
not important for a jog, just the relative change).
We provide two types of potentiometers, the basic potentiometer
(FISPot) and the
potentiometer that allows attached graphics for the indicator (FISPotAttach).
These are similar to FISJog
and FISJogAttach,
respectively. Since the value is exposed, you can set maximum and
minimum values for the potentiometer, even if the values are beyond
one revolution. Like the jogs, you can choose between a click-and-drag
turn, or a mouse-over turn. The potentiometer extends the jog by
exposing the
One interesting feature technically of the jog (but really mostly
useful for the potentiometer) is the "snap-to-integer"
property of FISPotAttach.
This feature lets the user move the knob in a continuous fashion,
but when the user releases the mouse, the knob snaps into position
at the closest integer step. This simulates physical knobs that
have distinct positions at rest, but continuous movement. |