public abstract class ChartLogic extends Object
| Modifier and Type | Field and Description |
|---|---|
List<Color> |
blacklistColors |
protected List<CommonSeriesCalculator> |
commonSeriesCalculators |
protected Long |
earliestX |
protected long |
highestX |
protected Map<String,org.jfree.chart.LegendItem> |
legends |
protected XYPlotExtension |
plot |
protected List<Range> |
ranges |
protected com.loadcoder.load.jfreechartfixes.XYLineAndShapeRendererExtention |
renderer |
protected static long |
SAMPLELENGTH_DEFAULT |
protected XYSeriesCollectionExtention |
seriesCollection |
protected Map<String,Boolean> |
seriesVisible |
static int |
TARGET_AMOUNT_OF_POINTS_DEFAULT |
protected List<YCalculator> |
yCalculators |
YCalculator |
yCalculatorToUse |
| Constructor and Description |
|---|
ChartLogic(XYSeriesCollectionExtention seriesCollection,
XYPlotExtension plot,
com.loadcoder.load.jfreechartfixes.XYLineAndShapeRendererExtention renderer,
Map<String,Boolean> seriesVisible,
CommonSeries[] commonSeries,
boolean locked,
Map<String,Color> existingColors) |
protected Long earliestX
protected long highestX
protected final XYSeriesCollectionExtention seriesCollection
protected final XYPlotExtension plot
protected final com.loadcoder.load.jfreechartfixes.XYLineAndShapeRendererExtention renderer
protected final List<YCalculator> yCalculators
public YCalculator yCalculatorToUse
public static final int TARGET_AMOUNT_OF_POINTS_DEFAULT
protected static final long SAMPLELENGTH_DEFAULT
protected final List<CommonSeriesCalculator> commonSeriesCalculators
public ChartLogic(XYSeriesCollectionExtention seriesCollection, XYPlotExtension plot, com.loadcoder.load.jfreechartfixes.XYLineAndShapeRendererExtention renderer, Map<String,Boolean> seriesVisible, CommonSeries[] commonSeries, boolean locked, Map<String,Color> existingColors)
protected void addSeriesKey(String key)
protected Map<String,XYSeriesExtension> getCommonSeriesMap()
protected abstract void update(Map<String,List<com.loadcoder.result.TransactionExecutionResult>> listOfListOfList, HashSet<Long> hashesGettingUpdated)
protected abstract void doUpdate()
public YCalculator getYCalculatorToUse()
protected XYSeriesCollectionExtention getSeriesCollection()
public XYPlotExtension getPlot()
protected long getXDiff()
protected Range lookupCorrectRange(long ts)
public void doSafeUpdate()
public List<DataSetUserType> getRemovalFiltersInUse()
protected void setFilteredData(FilteredData filteredData)
public FilteredData getFilteredData()
public long getSampleLengthToUse()
public void setSampleLengthToUse(long sampleLengthToUse)
public List<YCalculator> getyCalculators()
public static void addSurroundingTimestampsAsUpdates(Set<Long> hashesGettingUpdated, long sampleStart, long earliest, long latest, List<Range> ranges, long currentSampleLength, Set<Long> sampleTimestamps, Map<Long,Sample> aboutToBeUpdated)
public void createCommons()
public void addSeries(XYSeriesExtension serie)
public void removeSeries(XYSeriesExtension serie)
public void addAllCommonSeriesToTheChart()
public Range getSampleLength(long timestamp)
public void forceRerender()
Copyright © 2019. All rights reserved.