Class SliderGroup
Hierarchy (View Summary)
- SelectorGroup
- SliderGroup
Constructors
constructor
-
Creates a new SelectorGroup
Parameters
- name: string
of group, used as a group heading
Returns SliderGroup
- name: string
Accessors
group Panel
-
Gets the groupPanel of the SelectorGroup
Returns StackPanel
header
-
get header(): string
Gets and sets the group header
Returns string
-
set header(label: string): void
Parameters
- label: string
Returns void
selectors
-
Gets the selectors array
Returns StackPanel[]
Methods
add Slider
-
addSlider(
label: string,
func?: (v: number) => void,
unit?: string,
min?: number,
max?: number,
value?: number,
onValueChange?: (v: number) => number,
): voidAdds a slider to the SelectorGroup
Parameters
- label: string
is the label for the SliderBar
- func: (v: number) => void = ...
is the function called when the Slider moves
- unit: string = "Units"
is a string describing the units used, eg degrees or metres
- min: number = 0
is the minimum value for the Slider
- max: number = 0
is the maximum value for the Slider
- value: number = 0
is the start value for the Slider between min and max
- onValueChange: (v: number) => number = ...
is the function used to format the value displayed, eg radians to degrees
Returns void
- label: string
remove Selector
-
Removes the selector at the given position
Parameters
- selectorNb: number
the position of the selector within the group
Returns void
- selectorNb: number
Class used to create a SliderGroup which contains groups of slider buttons