oracle.dss.graph
Interface DataErrorTextCallback
- public interface DataErrorTextCallback
Defines a callback for overriding the error message that the 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.
- See Also:
Graph.setDataErrorTextCallback(oracle.dss.graph.DataErrorTextCallback)
Method Summary |
java.lang.String[] |
getDataErrorText(java.lang.String[] currentText, NotEnoughData neData)
Retrieves the customized error message text. |
getDataErrorText
public java.lang.String[] getDataErrorText(java.lang.String[] currentText,
NotEnoughData neData)
- Retrieves the customized error message text. The
Graph
calls this method to retrieve the custom error message text that is displayed when there is not enough data to draw a graph.
-
- Parameters:
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.
- Returns:
- The data error text to display. The graph displays each element of the array as a separate line in the message. If the returned array is null or every element is null, then the graph logs a message with its error handler and displays the text that is specified by
currentText
.
Copyright © 2003, Oracle. All Rights Reserved.