Example usage for org.jfree.data ComparableObjectSeries getAllowDuplicateXValues

List of usage examples for org.jfree.data ComparableObjectSeries getAllowDuplicateXValues

Introduction

In this page you can find the example usage for org.jfree.data ComparableObjectSeries getAllowDuplicateXValues.

Prototype

public boolean getAllowDuplicateXValues() 

Source Link

Document

Returns a flag that controls whether duplicate x-values are allowed.

Usage

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

/**
 * Some checks for the constructor./*w  w  w .  j av a  2 s.c  o  m*/
 */
@Test
public void testConstructor1() {
    ComparableObjectSeries s1 = new ComparableObjectSeries("s1");
    assertEquals("s1", s1.getKey());
    assertNull(s1.getDescription());
    assertTrue(s1.getAllowDuplicateXValues());
    assertTrue(s1.getAutoSort());
    assertEquals(0, s1.getItemCount());
    assertEquals(Integer.MAX_VALUE, s1.getMaximumItemCount());

    // try null key
    boolean pass = false;
    try {
        /*s1 = */new ComparableObjectSeries(null);
    } catch (IllegalArgumentException e) {
        pass = true;
    }
    assertTrue(pass);
}