com.jjoe64.graphview
Class LineGraphView

java.lang.Object
  extended by LinearLayout
      extended by com.jjoe64.graphview.GraphView
          extended by com.jjoe64.graphview.LineGraphView

public class LineGraphView
extends GraphView

Line Graph View. This draws a line chart.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jjoe64.graphview.GraphView
GraphView.GraphViewData, GraphView.LegendAlign
 
Field Summary
 
Fields inherited from class com.jjoe64.graphview.GraphView
paint
 
Constructor Summary
LineGraphView(Context context, AttributeSet attrs)
           
LineGraphView(Context context, java.lang.String title)
           
 
Method Summary
 void drawSeries(Canvas canvas, GraphViewDataInterface[] values, float graphwidth, float graphheight, float border, double minX, double minY, double diffX, double diffY, float horstart, GraphViewSeries.GraphViewSeriesStyle style)
           
 int getBackgroundColor()
           
 boolean getDrawBackground()
           
 void setBackgroundColor(int color)
           
 void setDrawBackground(boolean drawBackground)
           
 
Methods inherited from class com.jjoe64.graphview.GraphView
addSeries, drawLegend, formatLabel, getCustomLabelFormatter, getGraphViewStyle, getLegendAlign, getLegendWidth, getMaxX, getMaxY, getMinX, getMinY, isDisableTouch, isScrollable, isShowLegend, redrawAll, removeAllSeries, removeSeries, removeSeries, scrollToEnd, setCustomLabelFormatter, setDisableTouch, setGraphViewStyle, setHorizontalLabels, setLegendAlign, setLegendWidth, setManualYAxis, setManualYAxisBounds, setScalable, setScrollable, setShowLegend, setTitle, setVerticalLabels, setViewPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineGraphView

public LineGraphView(Context context,
                     AttributeSet attrs)

LineGraphView

public LineGraphView(Context context,
                     java.lang.String title)
Method Detail

drawSeries

public void drawSeries(Canvas canvas,
                       GraphViewDataInterface[] values,
                       float graphwidth,
                       float graphheight,
                       float border,
                       double minX,
                       double minY,
                       double diffX,
                       double diffY,
                       float horstart,
                       GraphViewSeries.GraphViewSeriesStyle style)
Specified by:
drawSeries in class GraphView

getBackgroundColor

public int getBackgroundColor()

getDrawBackground

public boolean getDrawBackground()

setBackgroundColor

public void setBackgroundColor(int color)

setDrawBackground

public void setDrawBackground(boolean drawBackground)
Parameters:
drawBackground - true for a light blue background under the graph line