Class AbstractLineVisualSet<T>

java.lang.Object
com.amalgamasimulation.charts.visualsets.VisualSet<T>
com.amalgamasimulation.charts.visualsets.AbstractLineVisualSet<T>
Type Parameters:
T - visual set data elements type
All Implemented Interfaces:
ILegendNodePropertiesOwner, IMinMaxValuePropertyOwner, IUpdatePolicyPropertyOwner, IAbstractChartVisualSet
Direct Known Subclasses:
AbstractPolylineVisualSet, LineVisualSet

public abstract class AbstractLineVisualSet<T> extends VisualSet<T> implements IMinMaxValuePropertyOwner, IUpdatePolicyPropertyOwner, ILegendNodePropertiesOwner
Parent for all visual sets drawn on the chart by points and lines.
Author:
Aleksey Kirillov
  • Field Details

  • Constructor Details

    • AbstractLineVisualSet

      public AbstractLineVisualSet(String name, Supplier<List<T>> dataElementsProvider, Function<T,Double> argumentExtractor, Function<T,Double> valueExtractor)
      Constructs an AbstractLineVisualSet with given name, data elements and arguments/value extractors, i.e. a functions that specifies the rule for extracting an argument/value from a data element.
      Parameters:
      name - visual set name is used to sort and name the visual sets on the chart
      dataElementsProvider - data elements list provider. The provider is invalidated every time the chart is being redrawn
      argumentExtractor - a function that specifies the rule for extracting an argument from a data element
      valueExtractor - a function that specifies the rule for extracting a value from a data element
  • Method Details