Example usage for org.jfree.data DomainOrder NONE

List of usage examples for org.jfree.data DomainOrder NONE

Introduction

In this page you can find the example usage for org.jfree.data DomainOrder NONE.

Prototype

DomainOrder NONE

To view the source code for org.jfree.data DomainOrder NONE.

Click Source Link

Document

No order.

Usage

From source file:org.jfree.data.DomainOrderTest.java

/**
 * Some checks for the equals() method.//  w  w w .  j a v a 2 s. co  m
 */
@Test
public void testEquals() {
    assertEquals(DomainOrder.NONE, DomainOrder.NONE);
    assertEquals(DomainOrder.ASCENDING, DomainOrder.ASCENDING);
    assertEquals(DomainOrder.DESCENDING, DomainOrder.DESCENDING);
    assertFalse(DomainOrder.NONE.equals(DomainOrder.ASCENDING));
    assertFalse(DomainOrder.NONE.equals(DomainOrder.DESCENDING));
    assertFalse(DomainOrder.NONE.equals(null));
    assertFalse(DomainOrder.ASCENDING.equals(DomainOrder.NONE));
    assertFalse(DomainOrder.ASCENDING.equals(DomainOrder.DESCENDING));
    assertFalse(DomainOrder.ASCENDING.equals(null));
    assertFalse(DomainOrder.DESCENDING.equals(DomainOrder.NONE));
    assertFalse(DomainOrder.DESCENDING.equals(DomainOrder.ASCENDING));
    assertFalse(DomainOrder.DESCENDING.equals(null));
}

From source file:org.jfree.data.xy.AbstractXYDataset.java

/**
 * Returns the order of the domain (X) values.
 *
 * @return The domain order.
 */
public DomainOrder getDomainOrder() {
    return DomainOrder.NONE;
}

From source file:org.jfree.data.xy.DefaultXYDataset.java

/**
 * Returns the order of the domain (x-) values in the dataset.  In this
 * implementation, we cannot guarantee that the x-values are ordered, so
 * this method returns <code>DomainOrder.NONE</code>.
 *
 * @return <code>DomainOrder.NONE</code>.
 *//* www . ja va 2s . com*/
@Override
public DomainOrder getDomainOrder() {
    return DomainOrder.NONE;
}

From source file:org.jfree.data.xy.XYSeriesCollection.java

/**
 * Returns the order of the domain (X) values, if this is known.
 *
 * @return The domain order.//from  w ww . jav a2s .  c o  m
 */
@Override
public DomainOrder getDomainOrder() {
    int seriesCount = getSeriesCount();
    for (int i = 0; i < seriesCount; i++) {
        XYSeries s = getSeries(i);
        if (!s.getAutoSort()) {
            return DomainOrder.NONE; // we can't be sure of the order
        }
    }
    return DomainOrder.ASCENDING;
}