Java Code Examples for org.jfree.chart.renderer.xy.XYBubbleRenderer#setSeriesOutlinePaint()
The following examples show how to use
org.jfree.chart.renderer.xy.XYBubbleRenderer#setSeriesOutlinePaint() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EyeCandySixtiesChartTheme.java From jasperreports with GNU Lesser General Public License v3.0 | 6 votes |
@Override protected JFreeChart createBubbleChart() throws JRException { JFreeChart jfreeChart = super.createBubbleChart(); XYPlot xyPlot = (XYPlot)jfreeChart.getPlot(); XYBubbleRenderer bubbleRenderer = (XYBubbleRenderer)xyPlot.getRenderer(); bubbleRenderer = new GradientXYBubbleRenderer(bubbleRenderer.getScaleType()); xyPlot.setRenderer(bubbleRenderer); XYDataset xyDataset = xyPlot.getDataset(); if (xyDataset != null) { for (int i = 0; i < xyDataset.getSeriesCount(); i++) { bubbleRenderer.setSeriesOutlinePaint(i, ChartThemesConstants.TRANSPARENT_PAINT); bubbleRenderer.setSeriesPaint(i, ChartThemesConstants.EYE_CANDY_SIXTIES_GRADIENT_PAINTS.get(i)); } } return jfreeChart; }
Example 2
Source File: AegeanChartTheme.java From jasperreports with GNU Lesser General Public License v3.0 | 6 votes |
@Override protected JFreeChart createBubbleChart() throws JRException { JFreeChart jfreeChart = super.createBubbleChart(); XYPlot xyPlot = (XYPlot)jfreeChart.getPlot(); XYBubbleRenderer bubbleRenderer = (XYBubbleRenderer)xyPlot.getRenderer(); XYDataset xyDataset = xyPlot.getDataset(); if(xyDataset != null) { for(int i = 0; i < xyDataset.getSeriesCount(); i++) { bubbleRenderer.setSeriesOutlinePaint(i, ChartThemesConstants.TRANSPARENT_PAINT); } } return jfreeChart; }