Class IndicatorDescriptor

java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<IndicatorInfo>
com.motivewave.platform.sdk.common.desc.IndicatorDescriptor

public class IndicatorDescriptor extends SettingDescriptor<IndicatorInfo>
Describes an indicator that is displayed on the axis.
  • Constructor Details

    • IndicatorDescriptor

      public IndicatorDescriptor(String id, String label, Color bgColor, Color txtColor, boolean showLine, boolean enabled, boolean supportsDisable)
      Constructor
      Parameters:
      id - name of this setting
      label - label displayed to the user
      bgColor - default background color for the indicator
      txtColor - default text color of the indicator
      showLine - indicates if the line is shown by default
      enabled - indicates if the indicator is enabled by default
      supportsDisable - indicates if the user can disable the indicator
    • IndicatorDescriptor

      public IndicatorDescriptor(String id, String label, Color bgColor, Color txtColor, Font font, boolean showInd, Color lineColor, float lineWidth, float[] lineDash, boolean showLine, boolean enabled, boolean supportsDisable)
      Constructor
      Parameters:
      id - name of this setting
      label - label displayed to the user
      bgColor - default background color for the indicator
      txtColor - default text color of the indicator
      showLine - indicates if the line is shown by default
      enabled - indicates if the indicator is enabled by default
      supportsDisable - indicates if the user can disable the indicator
    • IndicatorDescriptor

      public IndicatorDescriptor(String id, String label, Color bgColor, Color txtColor, Font font, boolean showInd, Color lineColor, float lineWidth, float[] lineDash, boolean showLine, boolean showTag, String tag, boolean enabled, boolean supportsDisable)
      Constructor
      Parameters:
      id - name of this setting
      label - label displayed to the user
      bgColor - default background color for the indicator
      txtColor - default text color of the indicator
      showLine - indicates if the line is shown by default
      showTag - indicates if the tag is shown by default
      tag - default tag text
      enabled - indicates if the indicator is enabled by default
      supportsDisable - indicates if the user can disable the indicator
    • IndicatorDescriptor

      public IndicatorDescriptor(IndicatorInfo info)
    • IndicatorDescriptor

      public IndicatorDescriptor(IndicatorInfo info, boolean supportsDisable)
    • IndicatorDescriptor

      public IndicatorDescriptor(String id, String label, IndicatorInfo info, boolean supportsDisable)
      Constructor
      Parameters:
      id - name of this setting
      label - label displayed to the user
      supportsDisable - indicates if the user can disable the indicator
      bgColor - default background color for the indicator
      txtColor - default text color of the indicator
      showLine - indicates if the line is shown by default
      showTag - indicates if the tag is shown by default
      tag - default tag text
      enabled - indicates if the indicator is enabled by default
  • Method Details

    • getDefaultValue

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

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

      public boolean isDisplaySetting()
      Description copied from class: SettingDescriptor
      Indicates if this setting is used to affect the appearance of the of the study/strategy
      Overrides:
      isDisplaySetting in class SettingDescriptor<IndicatorInfo>
      Returns:
      true if this setting affects the appearance of the study/strategy
    • isSupportsTag

      public boolean isSupportsTag()
    • setSupportsTag

      public IndicatorDescriptor setSupportsTag(boolean b)
    • isSupportsLine

      public boolean isSupportsLine()
    • setSupportsLine

      public IndicatorDescriptor setSupportsLine(boolean b)
    • isSupportsTagAlign

      public boolean isSupportsTagAlign()
    • setSupportsTagAlign

      public IndicatorDescriptor setSupportsTagAlign(boolean b)
    • isSupportsBgColor

      public boolean isSupportsBgColor()
    • setSupportsBgColor

      public IndicatorDescriptor setSupportsBgColor(boolean b)
    • getTextColor

      public Color getTextColor()
    • setTextColor

      public void setTextColor(Color c)
    • fromJson

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