public static class RangeSelector.Button extends Configurable<RangeSelector.Button>
RangeSelector of
a StockChart. For example, to create a button to display a 6 month time selection:
new RangeSelector.Button()
.setType(RangeSelector.ButtonType.MONTH)
.setCount(6)
.setText("6m");
| Constructor and Description |
|---|
RangeSelector.Button() |
| Modifier and Type | Method and Description |
|---|---|
RangeSelector.Button |
setCount(Number count)
Defines how many units of the defined type to use.
|
RangeSelector.Button |
setText(String text)
Set the text to display on the button
|
RangeSelector.Button |
setType(RangeSelector.ButtonType type)
Defines the timespan unit of the button.
|
getOptions, setOptionpublic RangeSelector.Button setType(RangeSelector.ButtonType type)
type - the button type which defines the timespan unit of the buttonRangeSelector.Button instance for convenient method chaining.public RangeSelector.Button setCount(Number count)
count - the count of the type unitRangeSelector.Button instance for convenient method chaining.public RangeSelector.Button setText(String text)
text - the text to display on the buttonRangeSelector.Button instance for convenient method chaining.Copyright © 2015. All Rights Reserved.