package ervu_dashboard.model.chart.round;

import property.grid.Formatter;
import rpc.LoadGraphSource;

import ru.cg.webbpm.modules.database.bean.AggregationFunction;
import ru.cg.webbpm.modules.database.bean.annotation.GraphSource;
import ru.cg.webbpm.modules.database.bean.entity_graph.EntityColumn;
import ru.cg.webbpm.modules.standard_annotations.editor.ColorEditor;
import ru.cg.webbpm.modules.standard_annotations.validation.NotNull;

/**
 * @author Vitaly Chekushkin
 */
public class RoundColumnAggregationData {
  @NotNull
  public String label;
  @NotNull
  @GraphSource(
      value = LoadGraphSource.class,
      scanMode = GraphSource.ScanMode.CLOSEST_PROPERTY_CONTEXT
  )
  public EntityColumn aggregationColumn;
  @NotNull
  public AggregationFunction aggregationFunction;
  @NotNull
  @ColorEditor
  public String backgroundColor;
  public Formatter<Object, Object> aggregationColumnFormatter;
}
