com.jjoe64.graphview
Class LineGraphView
java.lang.Object
LinearLayout
com.jjoe64.graphview.GraphView
com.jjoe64.graphview.LineGraphView
public class LineGraphView
- extends GraphView
Line Graph View. This draws a line chart.
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 |
LineGraphView
public LineGraphView(Context context,
AttributeSet attrs)
LineGraphView
public LineGraphView(Context context,
java.lang.String title)
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