Package eu.bandm.sighkn
Class FloatSlider
java.lang.Object
eu.bandm.sig.adlib.FloatClockedSignalSource
eu.bandm.sighkn.FloatSlider
- All Implemented Interfaces:
CompilableControlFlow
,CompilableDataFlow
,FloatSignalSource
,FloatSupplier
,Realtime
,SignalSource<Float>
,Runnable
,Supplier<Float>
FIXME Implementierung als MIDI CONTROL fehlt noch!
STATT oder ZUSÄTZLICH ZUR JSlider eingabe !?!?
FIXME TICKS (user coordinates) fehlen noch
FIXME horizontale version fehlt noch
FIXME inc/dec buttons (einschaltbar)
+-----+ +-----------------------------------------+ |label| | label [...] unit | | = | | |----------[XXX]---------------------| | | |300| | -120 300 | | | | +-----------------------------------------+ | | | |[XX] | | | | | | | | | | | | | | | | | | | | | | | |-120 | = | | | |[.]Hz| +-----+
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib.FloatSignalSource
FloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperator
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib.SignalSource
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final boolean
protected final JPanel
protected final JSlider
protected float
protected float
protected static final int
protected static final int
protected @Opt JComponent
protected final boolean
Fields inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
out
Fields inherited from interface eu.bandm.sig.adlib.FloatSignalSource
abs, add, clip, cos, div, E, exp, log, LOG2, metaGetAsFloat, mult, neg, PI, sin, sqrt, SQRT2, square, sub
Fields inherited from interface eu.bandm.sig.adlib.Realtime
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
-
Constructor Summary
ConstructorDescriptionFloatSlider
(float min, float max, boolean horiNotVert, @Opt String label, @Opt String unit, boolean valueField, boolean editableValueField) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected int
model2swing
(float value) void
run()
Processes an event.void
void
setRange
(float min, float max) void
setValue
(float value) protected float
swing2model
(int value) protected void
Methods inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
delayedBy, delayedWith, doCompileDataFlow, get, getAsFloat, iterate, logged, logged, random, randomNormal, randomUniform, repeat, slide, suppliedBy, suppliedBy, switchOver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.sig.adlib.FloatSignalSource
add, check, clocked, compileDataFlow, div, guard, logger, logger, map, mult, sub, zipWith, zipWith
Methods inherited from interface eu.bandm.sig.adlib.Realtime
afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, times, times
-
Field Details
-
SLIDER_MIN
protected static final int SLIDER_MIN- See Also:
-
SLIDER_MAX
protected static final int SLIDER_MAX- See Also:
-
min
protected float min -
max
protected float max -
horiNotVert
protected final boolean horiNotVert -
label
-
unit
-
valueField
protected final boolean valueField -
editableValueField
protected final boolean editableValueField -
jPanel
-
jSlider
-
jLabel
-
textField
-
-
Constructor Details
-
FloatSlider
-
-
Method Details
-
makeValueField
protected void makeValueField() -
swing2model
protected float swing2model(int value) -
model2swing
protected int model2swing(float value) -
setRange
public void setRange(float min, float max) -
setValue
public void setValue(float value) -
updateValueField
protected void updateValueField() -
do_updateValueField
protected void do_updateValueField() -
setLabel
-
getJSlider
-
getJPanel
-
run
public void run()Description copied from interface:Realtime
Processes an event.Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
-