|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jjoe64.graphview.GraphViewSeries
public class GraphViewSeries
a graphview series. holds the data, description and styles
Nested Class Summary | |
---|---|
static class |
GraphViewSeries.GraphViewSeriesStyle
graph series style: color and thickness |
Constructor Summary | |
---|---|
GraphViewSeries(GraphViewDataInterface[] values)
|
|
GraphViewSeries(java.lang.String description,
GraphViewSeries.GraphViewSeriesStyle style,
GraphViewDataInterface[] values)
|
Method Summary | |
---|---|
void |
addGraphView(GraphView graphView)
this graphview will be redrawn if data changes |
void |
appendData(GraphViewDataInterface value,
boolean scrollToEnd)
Deprecated. please use appendData(GraphViewDataInterface, boolean, int) to avoid memory overflow |
void |
appendData(GraphViewDataInterface value,
boolean scrollToEnd,
int maxDataCount)
add one data to current data |
GraphViewSeries.GraphViewSeriesStyle |
getStyle()
|
void |
removeGraphView(GraphView graphView)
you should use GraphView.removeSeries(GraphViewSeries) |
void |
resetData(GraphViewDataInterface[] values)
clears the current data and set the new. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphViewSeries(GraphViewDataInterface[] values)
public GraphViewSeries(java.lang.String description, GraphViewSeries.GraphViewSeriesStyle style, GraphViewDataInterface[] values)
Method Detail |
---|
public void addGraphView(GraphView graphView)
graphView
- @Deprecated public void appendData(GraphViewDataInterface value, boolean scrollToEnd)
appendData(GraphViewDataInterface, boolean, int)
to avoid memory overflow
value
- the new data to appendscrollToEnd
- true => graphview will scroll to the end (maxX)public void appendData(GraphViewDataInterface value, boolean scrollToEnd, int maxDataCount)
value
- the new data to appendscrollToEnd
- true => graphview will scroll to the end (maxX)maxDataCount
- if max data count is reached, the oldest data value will be lostpublic GraphViewSeries.GraphViewSeriesStyle getStyle()
public void removeGraphView(GraphView graphView)
GraphView.removeSeries(GraphViewSeries)
graphView
- public void resetData(GraphViewDataInterface[] values)
values
- new data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |