Class MarkerDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<MarkerInfo>
com.motivewave.platform.sdk.common.desc.MarkerDescriptor
Describes marker figure that is displayed at strategic points on the graph.
-
Constructor Summary
ConstructorDescriptionMarkerDescriptor
(String name, String label, Enums.MarkerType type, Enums.Size size, Color fillColor, Color outlineColor, boolean enabled, boolean supportsDisable) ConstructorMarkerDescriptor
(String name, String label, MarkerInfo def, boolean supportsDisable) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
createInputFX
(Settings settings, boolean readOnly) Creates the component that will accept the user input.Gets the default value for this setting.Gets the default fill color for the marker.Gets the default outline color for the marker.getSize()
Gets the default size of the marker.getSizes()
Gets all of the valid marker sizes.getType()
Gets the default type of the marker.getTypes()
Gets the set of valid marker types.boolean
Indicates if this setting is used to affect the appearance of the of the study/strategyboolean
Indicates if the user can adjust the advanced attributes of the marker.boolean
Indicates if the user can adjust the color attributes of the marker.void
setSizes
(Enums.Size[] sizes) Sets the valid marker sizes.void
setSupportsAdvanced
(boolean b) Sets the attribute to allow the user to set advanced attributes.void
setSupportsColor
(boolean b) Sets the attribute to allow the user to set color attributes.void
setTypes
(Enums.MarkerType[] values) Sets the valid set of type choices.Methods 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
-
MarkerDescriptor
public MarkerDescriptor(String name, String label, Enums.MarkerType type, Enums.Size size, Color fillColor, Color outlineColor, boolean enabled, boolean supportsDisable) Constructor- Parameters:
name
- name of this setting (key)label
- label displayed to the usertype
- default type of the markersize
- default size of the markerfillColor
- default fill color for the markeroutlineColor
- default outline color for the markerenabled
- default enabled statesupportsDisable
- indicates if the user can disable the display of the marker
-
MarkerDescriptor
Constructor- Parameters:
name
- name of this setting (key)label
- label displayed to the usersupportsDisable
- indicates if the user can disable the display of the markertype
- default type of the markersize
- default size of the markerfillColor
- default fill color for the markeroutlineColor
- default outline color for the markerenabled
- default enabled state
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<MarkerInfo>
- Returns:
- default value for the setting
-
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<MarkerInfo>
- Parameters:
settings
- settings for the studyreadOnly
- true if the component should not accept user input- Returns:
- component that will accept user input.
-
getType
Gets the default type of the marker. -
getSize
Gets the default size of the marker. -
getFillColor
Gets the default fill color for the marker. -
getOutlineColor
Gets the default outline color for the marker. -
isSupportsAdvanced
public boolean isSupportsAdvanced()Indicates if the user can adjust the advanced attributes of the marker. -
setSupportsAdvanced
public void setSupportsAdvanced(boolean b) Sets the attribute to allow the user to set advanced attributes. -
isSupportsColor
public boolean isSupportsColor()Indicates if the user can adjust the color attributes of the marker. -
setSupportsColor
public void setSupportsColor(boolean b) Sets the attribute to allow the user to set color attributes. -
getTypes
Gets the set of valid marker types. -
setTypes
Sets the valid set of type choices. -
getSizes
Gets all of the valid marker sizes. -
setSizes
Sets the valid marker sizes. -
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<MarkerInfo>
- Returns:
- true if this setting affects the appearance of the study/strategy
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<MarkerInfo>
-