org.jfree.data.KeyedObjects2D Java Examples

The following examples show how to use org.jfree.data.KeyedObjects2D. 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: DefaultStatisticalCategoryDataset.java    From openstock with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.minimumRangeValueIncStdDevRow = -1;
    this.minimumRangeValueIncStdDevColumn = -1;
    this.maximumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDevRow = -1;
    this.maximumRangeValueIncStdDevColumn = -1;
}
 
Example #2
Source File: DefaultStatisticalCategoryDataset.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.minimumRangeValueIncStdDevRow = -1;
    this.minimumRangeValueIncStdDevColumn = -1;
    this.maximumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDevRow = -1;
    this.maximumRangeValueIncStdDevColumn = -1;
}
 
Example #3
Source File: DefaultStatisticalCategoryDataset.java    From ECG-Viewer with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.minimumRangeValueIncStdDevRow = -1;
    this.minimumRangeValueIncStdDevColumn = -1;
    this.maximumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDevRow = -1;
    this.maximumRangeValueIncStdDevColumn = -1;
}
 
Example #4
Source File: DefaultStatisticalCategoryDataset.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.minimumRangeValueIncStdDevRow = -1;
    this.minimumRangeValueIncStdDevColumn = -1;
    this.maximumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDevRow = -1;
    this.maximumRangeValueIncStdDevColumn = -1;
}
 
Example #5
Source File: DefaultStatisticalCategoryDataset.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.minimumRangeValueIncStdDevRow = -1;
    this.minimumRangeValueIncStdDevColumn = -1;
    this.maximumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDevRow = -1;
    this.maximumRangeValueIncStdDevColumn = -1;
}
 
Example #6
Source File: DefaultStatisticalCategoryDataset.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.minimumRangeValueIncStdDevRow = -1;
    this.minimumRangeValueIncStdDevColumn = -1;
    this.maximumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDevRow = -1;
    this.maximumRangeValueIncStdDevColumn = -1;
}
 
Example #7
Source File: DefaultStatisticalCategoryDataset.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.minimumRangeValueIncStdDevRow = -1;
    this.minimumRangeValueIncStdDevColumn = -1;
    this.maximumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDevRow = -1;
    this.maximumRangeValueIncStdDevColumn = -1;
}
 
Example #8
Source File: DefaultStatisticalCategoryDataset.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.minimumRangeValueIncStdDevRow = -1;
    this.minimumRangeValueIncStdDevColumn = -1;
    this.maximumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDevRow = -1;
    this.maximumRangeValueIncStdDevColumn = -1;
}
 
Example #9
Source File: Chart_21_DefaultBoxAndWhiskerCategoryDataset_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #10
Source File: DefaultBoxAndWhiskerCategoryDataset.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
}
 
Example #11
Source File: DefaultMultiValueCategoryDataset.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultMultiValueCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = null;
    this.maximumRangeValue = null;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #12
Source File: DefaultBoxAndWhiskerCategoryDataset.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
}
 
Example #13
Source File: KeyedObjects2DTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Some checks for the equals() method.
 */
public void testEquals() {
    KeyedObjects2D k1 = new KeyedObjects2D();
    KeyedObjects2D k2 = new KeyedObjects2D();
    assertTrue(k1.equals(k2));
    assertTrue(k2.equals(k1));

    k1.addObject(new Integer(99), "R1", "C1");
    assertFalse(k1.equals(k2));
    k2.addObject(new Integer(99), "R1", "C1");
    assertTrue(k1.equals(k2));
}
 
Example #14
Source File: KeyedObjects2DTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A simple check for the removeValue() method.
 */
public void testRemoveValue() {
    KeyedObjects2D data = new KeyedObjects2D();
    data.setObject("Obj1", "R1", "C1");
    data.setObject("Obj2", "R2", "C2");
    data.removeObject("R2", "C2");
    assertEquals(1, data.getRowCount());
    assertEquals(1, data.getColumnCount());
    assertEquals("Obj1", data.getObject(0, 0));
}
 
Example #15
Source File: DefaultMultiValueCategoryDataset.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultMultiValueCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = null;
    this.maximumRangeValue = null;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #16
Source File: DefaultBoxAndWhiskerCategoryDataset.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
}
 
Example #17
Source File: KeyedObjects2DTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Some checks for the equals() method.
 */
public void testEquals() {
    KeyedObjects2D k1 = new KeyedObjects2D();
    KeyedObjects2D k2 = new KeyedObjects2D();
    assertTrue(k1.equals(k2));
    assertTrue(k2.equals(k1));
    
    k1.addObject(new Integer(99), "R1", "C1");
    assertFalse(k1.equals(k2));
    k2.addObject(new Integer(99), "R1", "C1");
    assertTrue(k1.equals(k2)); 
}
 
Example #18
Source File: KeyedObjects2DTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A simple check for the removeValue() method.
 */
public void testRemoveValue() {
    KeyedObjects2D data = new KeyedObjects2D();
    data.setObject("Obj1", "R1", "C1");
    data.setObject("Obj2", "R2", "C2");
    data.removeObject("R2", "C2");
    assertEquals(1, data.getRowCount());
    assertEquals(1, data.getColumnCount());
    assertEquals("Obj1", data.getObject(0, 0));
}
 
Example #19
Source File: DefaultMultiValueCategoryDataset.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultMultiValueCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = null;
    this.maximumRangeValue = null;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #20
Source File: DefaultBoxAndWhiskerCategoryDataset.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
}
 
Example #21
Source File: DefaultStatisticalCategoryDataset.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultStatisticalCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.maximumRangeValue = Double.NaN;
    this.minimumRangeValueIncStdDev = Double.NaN;
    this.maximumRangeValueIncStdDev = Double.NaN;
}
 
Example #22
Source File: DefaultBoxAndWhiskerCategoryDataset.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = null;
    this.maximumRangeValue = null;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #23
Source File: DefaultMultiValueCategoryDataset.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultMultiValueCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = null;
    this.maximumRangeValue = null;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #24
Source File: DefaultBoxAndWhiskerCategoryDataset.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
}
 
Example #25
Source File: DefaultMultiValueCategoryDataset.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultMultiValueCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = null;
    this.maximumRangeValue = null;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #26
Source File: Arja_0093_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the mean value for an item.
 *
 * @param row  the row index (zero-based).
 * @param column  the column index (zero-based).
 *
 * @return The mean value.
 */
public Number getMeanValue(int row, int column) {
    Number result = null;
    MeanAndStandardDeviation masd 
        = (MeanAndStandardDeviation) this.data.getObject(row, column);
    this.data=new KeyedObjects2D();
    if (masd != null) {
        result = masd.getMean();
    }
    return result;
}
 
Example #27
Source File: DefaultBoxAndWhiskerCategoryDataset.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
}
 
Example #28
Source File: DefaultMultiValueCategoryDataset.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultMultiValueCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = null;
    this.maximumRangeValue = null;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #29
Source File: DefaultMultiValueCategoryDataset.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultMultiValueCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = null;
    this.maximumRangeValue = null;
    this.rangeBounds = new Range(0.0, 0.0);
}
 
Example #30
Source File: DefaultBoxAndWhiskerCategoryDataset.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new dataset.
 */
public DefaultBoxAndWhiskerCategoryDataset() {
    this.data = new KeyedObjects2D();
    this.minimumRangeValue = Double.NaN;
    this.minimumRangeValueRow = -1;
    this.minimumRangeValueColumn = -1;
    this.maximumRangeValue = Double.NaN;
    this.maximumRangeValueRow = -1;
    this.maximumRangeValueColumn = -1;
}