本文整理汇总了Java中org.jfree.data.xy.DefaultXYZDataset.removeSeries方法的典型用法代码示例。如果您正苦于以下问题:Java DefaultXYZDataset.removeSeries方法的具体用法?Java DefaultXYZDataset.removeSeries怎么用?Java DefaultXYZDataset.removeSeries使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.data.xy.DefaultXYZDataset
的用法示例。
在下文中一共展示了DefaultXYZDataset.removeSeries方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testFindZBounds
import org.jfree.data.xy.DefaultXYZDataset; //导入方法依赖的package包/类
/**
* Check if finding the bounds in z-dimension of an XYZDataset works.
*/
public void testFindZBounds() {
XYShapeRenderer r = new XYShapeRenderer();
assertNull(r.findZBounds(null));
DefaultXYZDataset dataset = new DefaultXYZDataset();
Range range;
double data1[][] = { {1,1,1}, {1,1,1}, {1,2,3} };
dataset.addSeries("series1", data1);
range = r.findZBounds(dataset);
assertNotNull(range);
assertEquals(1d, range.getLowerBound(), EPSILON);
assertEquals(3d, range.getUpperBound(), EPSILON);
double data2[][] = { {1,1,1}, {1,1,1}, {-1,-2,-3} };
dataset.removeSeries("series1");
dataset.addSeries("series2", data2);
range = r.findZBounds(dataset);
assertNotNull(range);
assertEquals(-3d, range.getLowerBound(), EPSILON);
assertEquals(-1d, range.getUpperBound(), EPSILON);
double data3[][] = { {1,1,1}, {1,1,1}, {-1.2,2.9,3.8} };
dataset.removeSeries("series2");
dataset.addSeries("series3", data3);
range = r.findZBounds(dataset);
assertNotNull(range);
assertEquals(-1.2d, range.getLowerBound(), EPSILON);
assertEquals(3.8d, range.getUpperBound(), EPSILON);
}
示例2: testFindZBounds
import org.jfree.data.xy.DefaultXYZDataset; //导入方法依赖的package包/类
/**
* Check if finding the bounds in z-dimension of an XYZDataset works.
*/
@Test
public void testFindZBounds() {
XYShapeRenderer r = new XYShapeRenderer();
assertNull(r.findZBounds(null));
DefaultXYZDataset dataset = new DefaultXYZDataset();
Range range;
double data1[][] = { {1,1,1}, {1,1,1}, {1,2,3} };
dataset.addSeries("series1", data1);
range = r.findZBounds(dataset);
assertNotNull(range);
assertEquals(1d, range.getLowerBound(), EPSILON);
assertEquals(3d, range.getUpperBound(), EPSILON);
double data2[][] = { {1,1,1}, {1,1,1}, {-1,-2,-3} };
dataset.removeSeries("series1");
dataset.addSeries("series2", data2);
range = r.findZBounds(dataset);
assertNotNull(range);
assertEquals(-3d, range.getLowerBound(), EPSILON);
assertEquals(-1d, range.getUpperBound(), EPSILON);
double data3[][] = { {1,1,1}, {1,1,1}, {-1.2,2.9,3.8} };
dataset.removeSeries("series2");
dataset.addSeries("series3", data3);
range = r.findZBounds(dataset);
assertNotNull(range);
assertEquals(-1.2d, range.getLowerBound(), EPSILON);
assertEquals(3.8d, range.getUpperBound(), EPSILON);
}