public interface DataErrorTextCallback
Graph
displays when it is not provided
with enough data to draw a graph.
To provide a custom error message, you implement this interface. Then you call the
Graph.setDataErrorTextCallback
method to register the
callback with the graph.Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getDataErrorText(java.lang.String[] currentText,
NotEnoughData neData)
Retrieves the customized error message text.
|
java.lang.String[] getDataErrorText(java.lang.String[] currentText, NotEnoughData neData)
Graph
calls this method
to retrieve the custom error message text that is displayed
when there is not enough data to draw a graph.currentText
- The current data error text that the
Graph
provides by default.
Each element of the array will be displayed as a
separate line in the message.neData
- The NotEnoughData
object that specifies
the conditions of the error.currentText
.