|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jrobin.graph.Plottable
public abstract class Plottable
Interface to be used for custom datasources. If you wish to use a custom datasource in a graph, you should create a class implementing this interface that represents that datasource, and then pass this class on to the RrdGraphDef.
Constructor Summary | |
---|---|
Plottable()
|
Method Summary | |
---|---|
double |
getValue(long timestamp)
Retrieves datapoint value based on a given timestamp. |
double |
getValue(long timestamp,
int index)
Retrieves datapoint value based on a given timestamp. |
double |
getValue(long timestamp,
java.lang.String fieldName)
Retrieves datapoint value based on a given timestamp. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Plottable()
Method Detail |
---|
public double getValue(long timestamp)
timestamp
- Timestamp in seconds for the datapoint.
public double getValue(long timestamp, int index)
timestamp
- Timestamp in seconds for the datapoint.index
- Integer referring to the series containing the specific datapoint.
public double getValue(long timestamp, java.lang.String fieldName)
timestamp
- Timestamp in seconds for the datapoint.fieldName
- String that refers to the series containing the datapoint.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |