public class ResultChartLogic extends ChartLogic
blacklistColors, commonSeriesCalculators, earliestX, highestX, legends, plot, ranges, renderer, SAMPLELENGTH_DEFAULT, seriesCollection, seriesVisible, TARGET_AMOUNT_OF_POINTS_DEFAULT, yCalculators, yCalculatorToUse| Constructor and Description |
|---|
ResultChartLogic(XYSeriesCollectionExtention seriesCollection,
XYPlotExtension plot,
com.loadcoder.load.jfreechartfixes.XYLineAndShapeRendererExtention renderer,
Map<String,Boolean> seriesVisible,
boolean defaultDottedMode,
CommonSeries[] commonSeries,
Map<String,Color> customizedColors,
boolean locked,
Map<String,Color> existingColors,
com.loadcoder.result.Result... results) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSerieseToChart(Map<String,XYSeriesExtension> seriesMap) |
void |
adjustVisibility(Map<String,XYSeriesExtension> seriesMap) |
protected static double |
amountOfSeriesesFactor(int amountOfThreads) |
static int |
calculateDefaultIndex(long sampleLengthToUse,
int minorTickLength) |
static long |
calculateSampleLengthDefault(FilteredData filteredData) |
static long |
calculateSampleLengthDefault(long min,
long max,
int amountOfTransactionTypes) |
long |
calculateSampleLengthWith(int indexOfSlider) |
static long |
calculateSliderTickSize(FilteredData filteredData) |
void |
chartSliderAjustment(long newSampleLength) |
void |
clearChart() |
Map<String,List<com.loadcoder.result.TransactionExecutionResult>> |
cloneTheOriginalResultList(Map<String,List<com.loadcoder.result.TransactionExecutionResult>> original) |
void |
createHashesAndUpdate(boolean updateSamples) |
protected void |
doUpdate() |
protected FilteredData |
generateDataSets(Map<String,List<com.loadcoder.result.TransactionExecutionResult>> src)
takes the list of resultlists and generates a list of DataSets from it along
with some metadata such as min and max timestamp.
|
double |
getCurrentKeepFactor() |
int |
getDefaultSliderIndex() |
Map<String,XYSeriesExtension> |
getDottedSeries() |
double |
getKeepFactorChosen() |
double |
getKeepFactorDefault() |
int |
getMinorTickLength() |
JRadioButtonMenuItem |
getPointsRadioButton() |
List<DataSetUserType> |
getRemovalFilters() |
int |
getsliderCompensation() |
void |
populateRemovalFilters() |
protected Map<String,List<com.loadcoder.result.TransactionExecutionResult>> |
populateResultLists(com.loadcoder.result.Result... results) |
void |
recreateDottedSeries() |
static ChartFrame.DataSetUser |
removeFails() |
static ChartFrame.DataSetUser |
removePercentile(int percentilToRemove) |
void |
setDottedSeries(Map<String,XYSeriesExtension> dottedSeries) |
void |
setKeepFactorChosen(double keepFactorChosen) |
void |
setPointsRadioButton(JRadioButtonMenuItem pointsRadioButton) |
protected void |
update(Map<String,List<com.loadcoder.result.TransactionExecutionResult>> listOfListOfList,
HashSet<Long> hashesGettingUpdated) |
void |
useDottedModeValue(boolean dottedMode) |
protected void |
useResult(com.loadcoder.result.Result r,
Map<String,List<com.loadcoder.result.TransactionExecutionResult>> listOfListOfTransactionResults) |
addAllCommonSeriesToTheChart, addSeries, addSeriesKey, addSurroundingTimestampsAsUpdates, createCommons, doSafeUpdate, forceRerender, getCommonSeriesMap, getExistingColors, getFilteredData, getNewColor, getPlot, getRemovalFiltersInUse, getSampleLength, getSampleLengthToUse, getSeriesCollection, getSeriesKeys, getXDiff, getyCalculators, getYCalculatorToUse, lookupCorrectRange, removeSeries, setFilteredData, setSampleLengthToUsepublic ResultChartLogic(XYSeriesCollectionExtention seriesCollection, XYPlotExtension plot, com.loadcoder.load.jfreechartfixes.XYLineAndShapeRendererExtention renderer, Map<String,Boolean> seriesVisible, boolean defaultDottedMode, CommonSeries[] commonSeries, Map<String,Color> customizedColors, boolean locked, Map<String,Color> existingColors, com.loadcoder.result.Result... results)
public double getCurrentKeepFactor()
public JRadioButtonMenuItem getPointsRadioButton()
public void setPointsRadioButton(JRadioButtonMenuItem pointsRadioButton)
public double getKeepFactorChosen()
public double getKeepFactorDefault()
public void setKeepFactorChosen(double keepFactorChosen)
public List<DataSetUserType> getRemovalFilters()
public void setDottedSeries(Map<String,XYSeriesExtension> dottedSeries)
public Map<String,XYSeriesExtension> getDottedSeries()
protected void update(Map<String,List<com.loadcoder.result.TransactionExecutionResult>> listOfListOfList, HashSet<Long> hashesGettingUpdated)
update in class ChartLogicpublic long calculateSampleLengthWith(int indexOfSlider)
public int getDefaultSliderIndex()
public int getsliderCompensation()
public void chartSliderAjustment(long newSampleLength)
public int getMinorTickLength()
protected void doUpdate()
doUpdate in class ChartLogicpublic void recreateDottedSeries()
public void createHashesAndUpdate(boolean updateSamples)
public void addSerieseToChart(Map<String,XYSeriesExtension> seriesMap)
public void adjustVisibility(Map<String,XYSeriesExtension> seriesMap)
protected FilteredData generateDataSets(Map<String,List<com.loadcoder.result.TransactionExecutionResult>> src)
src - the Map of lists of results that will be used to generate a FilteredData instance frompublic void populateRemovalFilters()
public void useDottedModeValue(boolean dottedMode)
protected Map<String,List<com.loadcoder.result.TransactionExecutionResult>> populateResultLists(com.loadcoder.result.Result... results)
protected void useResult(com.loadcoder.result.Result r,
Map<String,List<com.loadcoder.result.TransactionExecutionResult>> listOfListOfTransactionResults)
public static ChartFrame.DataSetUser removeFails()
public static ChartFrame.DataSetUser removePercentile(int percentilToRemove)
protected static double amountOfSeriesesFactor(int amountOfThreads)
public static int calculateDefaultIndex(long sampleLengthToUse,
int minorTickLength)
public static long calculateSliderTickSize(FilteredData filteredData)
public static long calculateSampleLengthDefault(FilteredData filteredData)
public static long calculateSampleLengthDefault(long min,
long max,
int amountOfTransactionTypes)
public Map<String,List<com.loadcoder.result.TransactionExecutionResult>> cloneTheOriginalResultList(Map<String,List<com.loadcoder.result.TransactionExecutionResult>> original)
public void clearChart()
Copyright © 2019. All rights reserved.