Package kg.apc.charting.rows
Class GraphRowAverages
- java.lang.Object
-
- kg.apc.charting.AbstractGraphRow
-
- kg.apc.charting.rows.GraphRowAverages
-
public class GraphRowAverages extends AbstractGraphRow
-
-
Field Summary
-
Fields inherited from class kg.apc.charting.AbstractGraphRow
color, drawLine, label, legendColorBox, LINE_THICKNESS_BIG, MARKER_SIZE_BIG, MARKER_SIZE_NONE, MARKER_SIZE_SMALL, markerSize, maxX, minX, ROW_AVERAGES, ROW_EXACT_VALUES, ROW_OVERALL_AVERAGES, ROW_PERCENTILES, ROW_ROLLING_SUM_VALUES, ROW_SIMPLE, ROW_SUM_VALUES
-
-
Constructor Summary
Constructors Constructor Description GraphRowAverages()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long xVal, double yVal)AbstractGraphPanelChartElementgetElement(long value)Needed for csv export.AbstractGraphPanelChartElementgetLowerElement(long value)Needed for aggregate average rows witch need to be summed.java.util.Iterator<java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>>iterator()intsize()-
Methods inherited from class kg.apc.charting.AbstractGraphRow
getColor, getFirstTime, getGranulationValue, getHigherKey, getLabel, getLegendColorBox, getMarkerSize, getMaxX, getMinMaxY, getMinX, instantiateNewRow, isDrawBar, isDrawLine, isDrawOnChart, isDrawSpline, isDrawThickLines, isDrawValueLabel, isShowInLegend, setColor, setDrawBar, setDrawLine, setDrawOnChart, setDrawSpline, setDrawThickLines, setDrawValueLabel, setExcludeOutOfRangeValues, setGranulationValue, setLabel, setLegendColorBox, setMarkerSize, setShowInLegend
-
-
-
-
Method Detail
-
add
public void add(long xVal, double yVal)- Overrides:
addin classAbstractGraphRow
-
iterator
public java.util.Iterator<java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>> iterator()
- Specified by:
iteratorin classAbstractGraphRow
-
size
public int size()
- Specified by:
sizein classAbstractGraphRow
-
getElement
public AbstractGraphPanelChartElement getElement(long value)
Description copied from class:AbstractGraphRowNeeded for csv export.- Specified by:
getElementin classAbstractGraphRow- Parameters:
value- the key to get the element- Returns:
- the corresponding element
-
getLowerElement
public AbstractGraphPanelChartElement getLowerElement(long value)
Description copied from class:AbstractGraphRowNeeded for aggregate average rows witch need to be summed. Must be overridden in child class if needed- Overrides:
getLowerElementin classAbstractGraphRow- Parameters:
value- the upper key to get the floor element- Returns:
- the floor element, null if not exist
-
-