Class FloatSlider

All Implemented Interfaces:
CompilableControlFlow, CompilableDataFlow, FloatSignalSource, FloatSupplier, Realtime, SignalSource<Float>, Runnable, Supplier<Float>

public class FloatSlider extends FloatClockedSignalSource
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|
  +-----+
  • 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

      @Opt protected final @Opt String label
    • unit

      @Opt protected final @Opt String unit
    • valueField

      protected final boolean valueField
    • editableValueField

      protected final boolean editableValueField
    • jPanel

      protected final JPanel jPanel
    • jSlider

      protected final JSlider jSlider
    • jLabel

      @Opt protected final @Opt JLabel jLabel
    • textField

      @Opt protected @Opt JComponent textField
  • Constructor Details

    • FloatSlider

      public FloatSlider(float min, float max, boolean horiNotVert, @Opt @Opt String label, @Opt @Opt String unit, boolean valueField, boolean editableValueField)
  • 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

      public void setLabel(String text)
    • getJSlider

      public JSlider getJSlider()
    • getJPanel

      public JPanel 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.