Java Code Examples for org.jfree.data.general.ValueDataset#getValue()

The following examples show how to use org.jfree.data.general.ValueDataset#getValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DialPlot.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the value from the specified dataset.
 *
 * @param datasetIndex  the dataset index.
 *
 * @return The data value.
 */
public double getValue(int datasetIndex) {
    double result = Double.NaN;
    ValueDataset dataset = getDataset(datasetIndex);
    if (dataset != null) {
        Number n = dataset.getValue();
        if (n != null) {
            result = n.doubleValue();
        }
    }
    return result;
}
 
Example 2
Source File: DialPlot.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the value from the specified dataset.
 *
 * @param datasetIndex  the dataset index.
 *
 * @return The data value.
 */
public double getValue(int datasetIndex) {
    double result = Double.NaN;
    ValueDataset dataset = getDataset(datasetIndex);
    if (dataset != null) {
        Number n = dataset.getValue();
        if (n != null) {
            result = n.doubleValue();
        }
    }
    return result;
}
 
Example 3
Source File: DialPlot.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the value from the specified dataset.
 *
 * @param datasetIndex  the dataset index.
 *
 * @return The data value.
 */
public double getValue(int datasetIndex) {
    double result = Double.NaN;
    ValueDataset dataset = getDataset(datasetIndex);
    if (dataset != null) {
        Number n = dataset.getValue();
        if (n != null) {
            result = n.doubleValue();
        }
    }
    return result;
}
 
Example 4
Source File: DialPlot.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the value from the specified dataset.
 *
 * @param datasetIndex  the dataset index.
 *
 * @return The data value.
 */
public double getValue(int datasetIndex) {
    double result = Double.NaN;
    ValueDataset dataset = getDataset(datasetIndex);
    if (dataset != null) {
        Number n = dataset.getValue();
        if (n != null) {
            result = n.doubleValue();
        }
    }
    return result;
}
 
Example 5
Source File: DialPlot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the value from the specified dataset.
 *
 * @param datasetIndex  the dataset index.
 *
 * @return The data value.
 */
public double getValue(int datasetIndex) {
    double result = Double.NaN;
    ValueDataset dataset = getDataset(datasetIndex);
    if (dataset != null) {
        Number n = dataset.getValue();
        if (n != null) {
            result = n.doubleValue();
        }
    }
    return result;
}
 
Example 6
Source File: DialPlot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the value from the specified dataset.
 * 
 * @param datasetIndex  the dataset index.
 * 
 * @return The data value.
 */
public double getValue(int datasetIndex) {
    double result = Double.NaN;
    ValueDataset dataset = getDataset(datasetIndex);
    if (dataset != null) {
        Number n = dataset.getValue();
        if (n != null) {
            result = n.doubleValue();
        }
    }
    return result;
}
 
Example 7
Source File: CollectorFunctionUtil.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
public static Number queryExistingValueFromDataSet( final ValueDataset dataset ) {
  try {
    return dataset.getValue();
  } catch ( Exception ignored ) {
    // dataset.getValue throws exceptions if the keys dont match ..
  }
  return null;
}
 
Example 8
Source File: DialPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the value from the specified dataset.
 *
 * @param datasetIndex  the dataset index.
 *
 * @return The data value.
 */
public double getValue(int datasetIndex) {
    double result = Double.NaN;
    ValueDataset dataset = getDataset(datasetIndex);
    if (dataset != null) {
        Number n = dataset.getValue();
        if (n != null) {
            result = n.doubleValue();
        }
    }
    return result;
}
 
Example 9
Source File: DialPlot.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the value from the specified dataset.
 *
 * @param datasetIndex  the dataset index.
 *
 * @return The data value.
 */
public double getValue(int datasetIndex) {
    double result = Double.NaN;
    ValueDataset dataset = getDataset(datasetIndex);
    if (dataset != null) {
        Number n = dataset.getValue();
        if (n != null) {
            result = n.doubleValue();
        }
    }
    return result;
}