Class ShadeDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<ShadeInfo>
com.motivewave.platform.sdk.common.desc.ShadeDescriptor
Describes information to shade an area between two lines/paths.
-
Constructor Summary
ConstructorDescriptionShadeDescriptor
(String name, String label, String[][] linePairs, Color color, boolean enabled, boolean supportsDisable) ConstructorShadeDescriptor
(String name, String label, String lineKey1, double value, Enums.ShadeType type, Color color) Constructor.ShadeDescriptor
(String name, String label, String lineKey1, double value, Enums.ShadeType type, Color color, boolean enabled, boolean supportsDisable) ConstructorShadeDescriptor
(String name, String label, String lineKey1, String lineKey2, Enums.ShadeType type, Color color) Constructor.ShadeDescriptor
(String name, String label, String lineKey1, String lineKey2, Enums.ShadeType type, Color color, boolean enabled, boolean supportsDisable) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
createInputFX
(Settings settings, boolean readOnly) Creates the component that will accept the user input.getColor()
Gets the default color for the shade.Gets the default value for this setting.Gets the setting key for the first line.Gets the setting key for the first line.String[][]
Gets the line pairs.Gets the type of shade to apply.double
getValue()
Gets the absolute value to shade above or below.boolean
Indicates if this setting is used to affect the appearance of the of the study/strategyMethods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, isAllowUserDefaults, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setShowLabel, setSupportsDisable
-
Constructor Details
-
ShadeDescriptor
public ShadeDescriptor(String name, String label, String lineKey1, String lineKey2, Enums.ShadeType type, Color color) Constructor.- Parameters:
name
-label
-lineKey1
-lineKey2
-type
-color
-
-
ShadeDescriptor
public ShadeDescriptor(String name, String label, String lineKey1, double value, Enums.ShadeType type, Color color) Constructor.- Parameters:
name
-label
-lineKey1
-value
-type
-color
-
-
ShadeDescriptor
public ShadeDescriptor(String name, String label, String lineKey1, String lineKey2, Enums.ShadeType type, Color color, boolean enabled, boolean supportsDisable) Constructor- Parameters:
name
-label
-lineKey1
-lineKey2
-type
-color
-enabled
-supportsDisable
-
-
ShadeDescriptor
public ShadeDescriptor(String name, String label, String[][] linePairs, Color color, boolean enabled, boolean supportsDisable) Constructor- Parameters:
name
- identifierlabel
- display label for the shadelinePairs
- set of line pairs to apply the shade (filled between the pairs)color
- shade colorenabled
- true if this shade is enabled by defaultsupportsDisable
- true if the user can disable the shade
-
ShadeDescriptor
public ShadeDescriptor(String name, String label, String lineKey1, double value, Enums.ShadeType type, Color color, boolean enabled, boolean supportsDisable) Constructor- Parameters:
name
-label
-lineKey1
-value
-type
-color
-enabled
-supportsDisable
-
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<ShadeInfo>
- Returns:
- default value for the setting
-
getColor
Gets the default color for the shade. -
getLineKey1
Gets the setting key for the first line. -
getLineKey2
Gets the setting key for the first line. -
getLinePairs
Gets the line pairs. -
getShadeType
Gets the type of shade to apply. -
getValue
public double getValue()Gets the absolute value to shade above or below. -
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 classSettingDescriptor<ShadeInfo>
- Returns:
- true if this setting affects the appearance of the study/strategy
-
createInputFX
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 classSettingDescriptor<ShadeInfo>
- Parameters:
settings
- settings for the studyreadOnly
- true if the component should not accept user input- Returns:
- component that will accept user input.
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<ShadeInfo>
-