List of usage examples for org.jfree.data.xy XYIntervalSeries isEmpty
public boolean isEmpty()
true
if the series contains no data items, and false
otherwise. From source file:org.jfree.data.xy.XYIntervalSeriesTest.java
/** * Some checks for the clear() method./* ww w . j a v a 2 s .c o m*/ */ @Test public void testClear() { XYIntervalSeries s1 = new XYIntervalSeries("S1"); s1.addChangeListener(this); s1.clear(); assertNull(this.lastEvent); assertTrue(s1.isEmpty()); s1.add(1.0, 2.0, 3.0, 4.0, 5.0, 6.0); assertFalse(s1.isEmpty()); s1.clear(); assertNotNull(this.lastEvent); assertTrue(s1.isEmpty()); }