Class BandByOptions<S extends AbstractChartSeries<?,?>>
Object
ObjectIdentity
BacklinkBuilder<S>
BandByOptions<S>
Configures the band-by legend of a series grouped with
setBandBy(String): the color of each band and
the bands that are selected. Obtain it with ChartSeries.Aggregation.getBandByOptions(), and return to
the series with back().
Each method adds or updates legend entries, one entry per band label. Calls that name the same label are merged into one entry.
-
Field Summary
Fields inherited from class BacklinkBuilder
METHOD_BACKFields inherited from class ObjectIdentity
classId, idGenerator, instanceId, invocations, m, NONE, parentObjectIdentity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMapping(String label, String color) Sets the color of the band with the given label.setSelected(String... labels) Marks the bands with the given labels as selected in the band-by legend.Restores a previously saved band-by legend state.Methods inherited from class BacklinkBuilder
back, getParentMethods inherited from class ObjectIdentity
addInvocation, addInvocation, addInvocationInternal, getClassId
-
Constructor Details
-
BandByOptions
-
-
Method Details
-
addMapping
Sets the color of the band with the given label.- Parameters:
label- the band labelcolor- the band color, for example"#2f7ed8"or"rgba(0,0,255,0.5)"- Returns:
- this builder
-
setSelected
Marks the bands with the given labels as selected in the band-by legend.- Parameters:
labels- the band labels- Returns:
- this builder
-
setState
Restores a previously saved band-by legend state. Each map is one legend entry and must containlabel, which identifies the band. An entry can also containkey,colorandselected.- Parameters:
state- the legend entries- Returns:
- this builder
-