2021-12-07 00:46:15 +01:00
|
|
|
package it.cavallium.jlinegraph;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2022-09-15 22:13:57 +02:00
|
|
|
public record SeriesData(List<Vertex> vertices, boolean isFunction, String name, boolean showInLegend) {
|
|
|
|
|
|
|
|
public SeriesData(List<Vertex> vertices, boolean isFunction, String name) {
|
|
|
|
this(vertices, isFunction, name, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public SeriesData {
|
|
|
|
showInLegend = showInLegend && !name.isBlank();
|
|
|
|
}
|
|
|
|
}
|