Class SliderDescriptor

java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Integer>
com.motivewave.platform.sdk.common.desc.SliderDescriptor

public class SliderDescriptor extends SettingDescriptor<Integer>
  • Constructor Details

    • SliderDescriptor

      public SliderDescriptor(String name, String label, int def)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      def - default value
    • SliderDescriptor

      public SliderDescriptor(String name, String label, int def, int min, int max)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      def - default value
      min - minimum slider value
      max - maximum slider value
    • SliderDescriptor

      public SliderDescriptor(String name, String label, int def, int min, int max, boolean autoMinMax)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      def - default value
      min - minimum slider value
      max - maximum slider value
      autoMinMax - automatically adjust min/max values
    • SliderDescriptor

      public SliderDescriptor(String name, String label, int def, IconFactory fact)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      def - default value
      fact - icon factory for the tool bar
    • SliderDescriptor

      public SliderDescriptor(String name, String label, int def, int min, int max, IconFactory fact)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      def - default value
      min - minimum slider value
      max - maximum slider value
      fact - icon factory for the tool bar
    • SliderDescriptor

      public SliderDescriptor(String name, String label, int def, int min, int max, boolean autoMinMax, IconFactory fact)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      def - default value
      min - minimum slider value
      max - maximum slider value
      autoMinMax - automatically adjust the min/max values for the slider
      fact - icon factory for the tool bar
  • Method Details

    • getDefaultValue

      public Integer getDefaultValue()
      Gets the default value for this setting.
      Overrides:
      getDefaultValue in class SettingDescriptor<Integer>
      Returns:
      default value for the setting
    • isAutoMinMax

      public boolean isAutoMinMax()
    • setAutoMinMax

      public void setAutoMinMax(boolean b)
    • createInputFX

      public javafx.scene.Node createInputFX(Settings settings, boolean readOnly)
      Description copied from class: SettingDescriptor
      Creates the component that will accept the user input. This is called by the study framework.
      Specified by:
      createInputFX in class SettingDescriptor<Integer>
      Parameters:
      settings - settings for the study
      readOnly - true if the component should not accept user input
      Returns:
      component that will accept user input.
    • createTBInput

      public javafx.scene.Node createTBInput(Settings settings)
      Description copied from class: SettingDescriptor
      Creates a version of the input that can be displayed in a tool bar.
      Overrides:
      createTBInput in class SettingDescriptor<Integer>
      Parameters:
      settings - settings for the study
      Returns:
      component that will accept user input.
    • fromJson

      public Object fromJson(Object json)
      Overrides:
      fromJson in class SettingDescriptor<Integer>