use of org.jfree.chart.urls.StandardCategoryURLGenerator in project SIMVA-SoS by SESoS.
the class BarChartTest method testSetSeriesURLGenerator.
/**
* Check that setting a URL generator for a series does override the
* default generator.
*/
@Test
public void testSetSeriesURLGenerator() {
CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
CategoryItemRenderer renderer = plot.getRenderer();
StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator();
renderer.setSeriesItemURLGenerator(0, url1);
CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0);
assertTrue(url2 == url1);
}
use of org.jfree.chart.urls.StandardCategoryURLGenerator in project SIMVA-SoS by SESoS.
the class StackedAreaChartTest method testSetSeriesURLGenerator.
/**
* Check that setting a URL generator for a series does override the
* default generator.
*/
@Test
public void testSetSeriesURLGenerator() {
CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
CategoryItemRenderer renderer = plot.getRenderer();
StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator();
renderer.setSeriesItemURLGenerator(0, url1);
CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0);
assertTrue(url2 == url1);
}
use of org.jfree.chart.urls.StandardCategoryURLGenerator in project SIMVA-SoS by SESoS.
the class StackedBarChart3DTest method testSetSeriesURLGenerator.
/**
* Check that setting a URL generator for a series does override the
* default generator.
*/
@Test
public void testSetSeriesURLGenerator() {
CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
CategoryItemRenderer renderer = plot.getRenderer();
StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator();
renderer.setSeriesItemURLGenerator(0, url1);
CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0);
assertTrue(url2 == url1);
}
use of org.jfree.chart.urls.StandardCategoryURLGenerator in project SIMVA-SoS by SESoS.
the class StackedBarChartTest method testSetSeriesURLGenerator.
/**
* Check that setting a URL generator for a series does override the
* default generator.
*/
@Test
public void testSetSeriesURLGenerator() {
CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
CategoryItemRenderer renderer = plot.getRenderer();
StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator();
renderer.setSeriesItemURLGenerator(0, url1);
CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0);
assertTrue(url2 == url1);
}
use of org.jfree.chart.urls.StandardCategoryURLGenerator in project SIMVA-SoS by SESoS.
the class AbstractCategoryItemRendererTest method testEquals_ObjectList3.
@Test
public void testEquals_ObjectList3() {
BarRenderer r1 = new BarRenderer();
r1.setSeriesItemURLGenerator(0, new StandardCategoryURLGenerator());
BarRenderer r2 = new BarRenderer();
r2.setSeriesItemURLGenerator(0, new StandardCategoryURLGenerator());
assertEquals(r1, r2);
r2.setSeriesItemURLGenerator(1, new StandardCategoryURLGenerator());
assertNotEquals(r1, r2);
}
Aggregations