public class FloatSlider extends FloatClockedSignalSource
+-----+ +-----------------------------------------+ |label| | label [...] unit | | = | | |----------[XXX]---------------------| | | |300| | -120 300 | | | | +-----------------------------------------+ | | | |[XX] | | | | | | | | | | | | | | | | | | | | | | | |-120 | = | | | |[.]Hz| +-----+
FloatSignalSource.CompilableBinaryOperator
Modifier and Type | Field and Description |
---|---|
protected boolean |
editableValueField |
protected boolean |
horiNotVert |
protected @Opt javax.swing.JLabel |
jLabel |
protected javax.swing.JPanel |
jPanel |
protected javax.swing.JSlider |
jSlider |
protected @Opt java.lang.String |
label |
protected float |
max |
protected float |
min |
protected static int |
SLIDER_MAX |
protected static int |
SLIDER_MIN |
protected @Opt javax.swing.JComponent |
textField |
protected @Opt java.lang.String |
unit |
protected boolean |
valueField |
out
add, clip, cos, div, E, exp, log, LOG2, mult, neg, PI, sin, sqrt, SQRT2, square, sub
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
Constructor and Description |
---|
FloatSlider(float min,
float max,
boolean horiNotVert,
@Opt java.lang.String label,
@Opt java.lang.String unit,
boolean valueField,
boolean editableValueField) |
Modifier and Type | Method and Description |
---|---|
protected void |
do_updateValueField() |
javax.swing.JPanel |
getJPanel() |
javax.swing.JSlider |
getJSlider() |
protected void |
makeValueField() |
protected int |
model2swing(float value) |
void |
run()
Processes an event.
|
void |
setLabel(java.lang.String text) |
void |
setRange(float min,
float max) |
void |
setValue(float value) |
protected float |
swing2model(int value) |
protected void |
updateValueField() |
delayedBy, delayedWith, doCompileDataFlow, get, getAsFloat, logged, logged, random, randomNormal, randomUniform, repeat, slide, suppliedBy, suppliedBy, switchOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, check, clip, clocked, compileDataFlow, constant, div, guard, logger, logger, lowerLogSpread, map, mult, project, project, project, sub, upperLogSpread, zipWith, zipWith
constant
adHoc, afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, sequence, times, times
protected static final int SLIDER_MIN
protected static final int SLIDER_MAX
protected float min
protected float max
protected final boolean horiNotVert
protected final boolean valueField
protected final boolean editableValueField
protected final javax.swing.JPanel jPanel
protected final javax.swing.JSlider jSlider
protected void makeValueField()
protected float swing2model(int value)
protected int model2swing(float value)
public void setRange(float min, float max)
public void setValue(float value)
protected void updateValueField()
protected void do_updateValueField()
public void setLabel(java.lang.String text)
public javax.swing.JSlider getJSlider()
public javax.swing.JPanel getJPanel()
public void run()
Realtime
Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.