Class AbstractGraphRow

    • Field Detail

      • drawLine

        protected boolean drawLine
      • markerSize

        protected int markerSize
      • color

        protected java.awt.Color color
      • legendColorBox

        protected java.awt.Rectangle legendColorBox
        When user clicks on this, color of the box and metric line will change.
      • label

        protected java.lang.String label
      • maxX

        protected long maxX
      • minX

        protected long minX
    • Constructor Detail

      • AbstractGraphRow

        public AbstractGraphRow()
    • Method Detail

      • setDrawThickLines

        public void setDrawThickLines​(boolean isThickLine)
      • isDrawThickLines

        public boolean isDrawThickLines()
      • setDrawLine

        public void setDrawLine​(boolean b)
      • setMarkerSize

        public void setMarkerSize​(int aMarkerSize)
      • isDrawLine

        public boolean isDrawLine()
        Returns:
        the drawLine
      • getMarkerSize

        public int getMarkerSize()
        Returns:
        the markerSize
      • getColor

        public java.awt.Color getColor()
      • setColor

        public void setColor​(java.awt.Color nextColor)
      • getLabel

        public java.lang.String getLabel()
        Returns:
        the label
      • setLabel

        public void setLabel​(java.lang.String label)
        Parameters:
        label - the label to set
      • getMaxX

        public long getMaxX()
        Returns:
        the maxX
      • getMinMaxY

        public double[] getMinMaxY​(int maxPoints)
        Parameters:
        maxPoints - ditto
        Returns:
        the exact maxY, taking in account maxPoint limit
      • getMinX

        public long getMinX()
        Returns:
        the minX
      • add

        public void add​(long xVal,
                        double yVal)
      • isDrawValueLabel

        public boolean isDrawValueLabel()
        Returns:
        the drawValueLabel
      • setDrawValueLabel

        public void setDrawValueLabel​(boolean drawValueLabel)
        Parameters:
        drawValueLabel - the drawValueLabel to set
      • isShowInLegend

        public boolean isShowInLegend()
        Returns:
        the showInLegend
      • setShowInLegend

        public void setShowInLegend​(boolean showInLegend)
        Parameters:
        showInLegend - the showInLegend to set
      • isDrawOnChart

        public boolean isDrawOnChart()
        Returns:
        the drawOnChart
      • setDrawOnChart

        public void setDrawOnChart​(boolean drawOnChart)
        Parameters:
        drawOnChart - the drawOnChart to set
      • setDrawBar

        public void setDrawBar​(boolean b)
      • isDrawBar

        public boolean isDrawBar()
        Returns:
        the drawBar
      • isDrawSpline

        public boolean isDrawSpline()
      • setDrawSpline

        public void setDrawSpline​(boolean drawSpline)
      • getGranulationValue

        public int getGranulationValue()
        Returns:
        the granulation value for drawbar width
      • setGranulationValue

        public void setGranulationValue​(int value)
        set the granulation value for drawbar width
        Parameters:
        value - to set
      • setExcludeOutOfRangeValues

        public void setExcludeOutOfRangeValues​(boolean excludeOutOfRangeValues)
        For bar chart x axis too big prevention. Must be overridden if necessary.
        Parameters:
        excludeOutOfRangeValues - ditto
      • getElement

        public abstract AbstractGraphPanelChartElement getElement​(long value)
        Needed for csv export.
        Parameters:
        value - the key to get the element
        Returns:
        the corresponding element
      • getLowerElement

        public AbstractGraphPanelChartElement getLowerElement​(long value)
        Needed for aggregate average rows witch need to be summed. Must be overridden in child class if needed
        Parameters:
        value - the upper key to get the floor element
        Returns:
        the floor element, null if not exist
      • getHigherKey

        public java.lang.Long getHigherKey​(long value)
      • size

        public abstract int size()
      • instantiateNewRow

        public static AbstractGraphRow instantiateNewRow​(int rowType)
      • getFirstTime

        public long getFirstTime()
        Returns:
        the firstTime
      • setLegendColorBox

        public void setLegendColorBox​(java.awt.Rectangle val)
      • getLegendColorBox

        public java.awt.Rectangle getLegendColorBox()