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.FloatSubOperatorNested 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
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected final JPanelprotected final JSliderprotected floatprotected floatprotected static final intprotected static final intprotected @Opt JComponentprotected final booleanFields inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
outFields 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, subFields inherited from interface eu.bandm.sig.adlib.Realtime
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS -
Constructor Summary
ConstructorsConstructorDescriptionFloatSlider(float min, float max, boolean horiNotVert, @Opt String label, @Opt String unit, boolean valueField, boolean editableValueField) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected intmodel2swing(float value) voidrun()Processes an event.voidvoidsetRange(float min, float max) voidsetValue(float value) protected floatswing2model(int value) protected voidMethods inherited from class eu.bandm.sig.adlib.FloatClockedSignalSource
delayedBy, delayedWith, doCompileDataFlow, get, getAsFloat, iterate, logged, logged, random, randomNormal, randomUniform, repeat, slide, suppliedBy, suppliedBy, switchOverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib.FloatSignalSource
add, check, clocked, compileDataFlow, div, guard, logger, logger, map, mult, sub, zipWith, zipWithMethods 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:RealtimeProcesses an event.Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
-