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 |
static int |
MOUSE_LEFT_CLICK_CODE |
protected XYPlotExtension |
plot |
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(CommonSeries[] commonSeries,
boolean locked) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllCommonSeriesToTheChart() |
void |
addSeries(XYSeriesExtension serie) |
protected void |
addSeriesKey(String key) |
static void |
addSurroundingTimestampsAsUpdates(Set<Long> hashesGettingUpdated,
long sampleStart,
long earliest,
long latest,
Ranges ranges,
long currentSampleLength,
Set<Long> sampleTimestamps,
Map<Long,Sample> aboutToBeUpdated) |
void |
createCommons() |
static org.jfree.chart.JFreeChart |
createXYLineChart(String title,
boolean legend,
boolean tooltips,
boolean urls,
org.jfree.chart.plot.XYPlot plot) |
static XYPlotExtension |
createXYPlotExtension(String yAxisLabel,
String xAxisLabel,
org.jfree.data.xy.XYDataset dataset,
com.loadcoder.load.jfreechartfixes.XYLineAndShapeRendererExtention renderer) |
void |
decreaseZoom(JComponent chart,
boolean saveAction) |
void |
doSafeUpdate() |
protected abstract void |
doUpdate() |
void |
forceRerender() |
org.jfree.chart.JFreeChart |
getChart() |
org.jfree.chart.ChartPanel |
getChartPanel() |
protected Map<String,XYSeriesExtension> |
getCommonSeriesMap() |
Map<String,Color> |
getExistingColors() |
FilteredData |
getFilteredData() |
JMenuBar |
getMenu() |
Color |
getNewColor(String seriesKey) |
XYPlotExtension |
getPlot() |
Ranges |
getRanges() |
List<DataSetUserType> |
getRemovalFiltersInUse() |
long |
getSampleLengthToUse() |
XYSeriesCollectionExtention |
getSeriesCollection() |
protected List<String> |
getSeriesKeys() |
int |
getTotalSize() |
protected long |
getXDiff() |
List<YCalculator> |
getyCalculators() |
YCalculator |
getYCalculatorToUse() |
void |
handleClick(int button,
Object clickedObject,
XYSeriesCollectionExtention serieses) |
void |
increaseZoom(JComponent chart,
boolean saveAction) |
void |
initCommonSeries() |
void |
initiateChart() |
void |
removeSeries(XYSeriesExtension serie) |
void |
scrolling(MouseWheelEvent e) |
protected void |
setFilteredData(FilteredData filteredData) |
void |
setSampleLengthToUse(long sampleLengthToUse) |
void |
setVisibility(XYSeriesExtension clickedSeries,
int iterator,
org.jfree.chart.LegendItem legend,
boolean visible) |
protected abstract void |
update(Map<String,List<com.loadcoder.result.TransactionExecutionResult>> listOfListOfList,
HashSet<Long> hashesGettingUpdated) |
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 static final int MOUSE_LEFT_CLICK_CODE
public ChartLogic(CommonSeries[] commonSeries, boolean locked)
public org.jfree.chart.ChartPanel getChartPanel()
public org.jfree.chart.JFreeChart getChart()
public Ranges getRanges()
public static org.jfree.chart.JFreeChart createXYLineChart(String title, boolean legend, boolean tooltips, boolean urls, org.jfree.chart.plot.XYPlot plot)
public static XYPlotExtension createXYPlotExtension(String yAxisLabel, String xAxisLabel, org.jfree.data.xy.XYDataset dataset, com.loadcoder.load.jfreechartfixes.XYLineAndShapeRendererExtention renderer)
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()
public XYSeriesCollectionExtention getSeriesCollection()
public XYPlotExtension getPlot()
protected long getXDiff()
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 void initCommonSeries()
public void initiateChart()
public JMenuBar getMenu()
public void scrolling(MouseWheelEvent e)
public void increaseZoom(JComponent chart, boolean saveAction)
public void decreaseZoom(JComponent chart, boolean saveAction)
public void setVisibility(XYSeriesExtension clickedSeries, int iterator, org.jfree.chart.LegendItem legend, boolean visible)
public static void addSurroundingTimestampsAsUpdates(Set<Long> hashesGettingUpdated, long sampleStart, long earliest, long latest, Ranges ranges, long currentSampleLength, Set<Long> sampleTimestamps, Map<Long,Sample> aboutToBeUpdated)
public void handleClick(int button,
Object clickedObject,
XYSeriesCollectionExtention serieses)
public void createCommons()
public void addSeries(XYSeriesExtension serie)
public void removeSeries(XYSeriesExtension serie)
public void addAllCommonSeriesToTheChart()
public int getTotalSize()
public void forceRerender()
Copyright © 2020. All rights reserved.