Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

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.
 

Method Detail

getDataErrorText

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.

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

Copyright © 1997, 2010, Oracle. All rights reserved.