Class BarSizeDescriptor

java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<BarSize>
com.motivewave.platform.sdk.common.desc.BarSizeDescriptor

public class BarSizeDescriptor extends SettingDescriptor<BarSize>
Describes a bar size that is part of the study/strategy.
  • Constructor Details

    • BarSizeDescriptor

      public BarSizeDescriptor(String name, String label, BarSize defaultValue)
      Constructor.
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      defaultValue - default bar size
  • Method Details

    • 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<BarSize>
      Parameters:
      settings - settings for the study
      readOnly - true if the component should not accept user input
      Returns:
      component that will accept user input.
    • getDefaultValue

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

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