Package kg.apc.charting.rows
Class GraphRowSumValues
- java.lang.Object
-
- kg.apc.charting.AbstractGraphRow
-
- kg.apc.charting.rows.GraphRowSumValues
-
- All Implemented Interfaces:
java.util.Iterator<java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>>
- Direct Known Subclasses:
GraphRowPercentiles
public class GraphRowSumValues extends AbstractGraphRow implements java.util.Iterator<java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>>
-
-
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 GraphRowSumValues()GraphRowSumValues(boolean doRollingSum)
-
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.longgetMaxX()Method used to getMaxX without taking in account out of range values.booleanhasNext()java.util.Iterator<java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>>iterator()java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>next()voidremove()voidsetExcludeOutOfRangeValues(boolean excludeOutOfRangeValues)For bar chart x axis too big prevention.intsize()-
Methods inherited from class kg.apc.charting.AbstractGraphRow
getColor, getFirstTime, getGranulationValue, getHigherKey, getLabel, getLegendColorBox, getLowerElement, getMarkerSize, getMinMaxY, getMinX, instantiateNewRow, isDrawBar, isDrawLine, isDrawOnChart, isDrawSpline, isDrawThickLines, isDrawValueLabel, isShowInLegend, setColor, setDrawBar, setDrawLine, setDrawOnChart, setDrawSpline, setDrawThickLines, setDrawValueLabel, setGranulationValue, setLabel, setLegendColorBox, setMarkerSize, setShowInLegend
-
-
-
-
Method Detail
-
setExcludeOutOfRangeValues
public void setExcludeOutOfRangeValues(boolean excludeOutOfRangeValues)
Description copied from class:AbstractGraphRowFor bar chart x axis too big prevention. Must be overridden if necessary.- Overrides:
setExcludeOutOfRangeValuesin classAbstractGraphRow- Parameters:
excludeOutOfRangeValues- ditto
-
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
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>>
-
next
public java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement> next()
- Specified by:
nextin interfacejava.util.Iterator<java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.util.Map.Entry<java.lang.Long,AbstractGraphPanelChartElement>>
-
size
public int size()
- Specified by:
sizein classAbstractGraphRow
-
getMaxX
public long getMaxX()
Method used to getMaxX without taking in account out of range values. I.E. we don't take in account on value if the distance with the last point is greater than getGranulationValue() * excludeCount.- Overrides:
getMaxXin classAbstractGraphRow- Returns:
- the evaluated MaxX
-
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
-
-