Package io.deephaven.plot.datasets
Class DynamicSeriesNamer
java.lang.Object
io.deephaven.plot.datasets.DynamicSeriesNamer
- All Implemented Interfaces:
Serializable
Provide unique names for series.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Comparable name, PlotInfo plotInfo) Adds a new series name to the namer.void
clear()
getNames()
Gets all the series names.makeUnusedName
(String potentialName, PlotInfo plotInfo) Takes a potential series name and creates a unique name from it.void
removeAll
(Collection<? extends Comparable> names) Remove all the specified series names.
-
Constructor Details
-
DynamicSeriesNamer
public DynamicSeriesNamer()
-
-
Method Details
-
add
Adds a new series name to the namer.- Parameters:
name
- new series name- Throws:
UnsupportedOperationException
- if the name has already been added.
-
removeAll
Remove all the specified series names.- Parameters:
names
- series names to remove
-
makeUnusedName
Takes a potential series name and creates a unique name from it. If the series would be new, the original series name is returned.- Parameters:
potentialName
- potential series name- Returns:
- uniquified series name
-
getNames
Gets all the series names.
The order of series in 3D-plots are determined by returned set.- Returns:
- Set<String> of seriesNames
-
clear
public void clear()
-