当前位置: 首页>>代码示例>>Java>>正文


Java BarRenderer3D.setItemMargin方法代码示例

本文整理汇总了Java中org.jfree.chart.renderer.category.BarRenderer3D.setItemMargin方法的典型用法代码示例。如果您正苦于以下问题:Java BarRenderer3D.setItemMargin方法的具体用法?Java BarRenderer3D.setItemMargin怎么用?Java BarRenderer3D.setItemMargin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.renderer.category.BarRenderer3D的用法示例。


在下文中一共展示了BarRenderer3D.setItemMargin方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createBar3DChart

import org.jfree.chart.renderer.category.BarRenderer3D; //导入方法依赖的package包/类
@Override
protected JFreeChart createBar3DChart() throws JRException
{
	JFreeChart jfreeChart = super.createBar3DChart();
	CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
	BarRenderer3D barRenderer3D = (BarRenderer3D)categoryPlot.getRenderer();

	barRenderer3D = new GradientBarRenderer3D(barRenderer3D);
	categoryPlot.setRenderer(barRenderer3D);

	barRenderer3D.setItemMargin(0);
	barRenderer3D.setWallPaint(ChartThemesConstants.TRANSPARENT_PAINT);
	//categoryPlot.setOrientation(PlotOrientation.HORIZONTAL);

	barRenderer3D.setItemMargin(0);

	CategoryDataset categoryDataset = categoryPlot.getDataset();
	if (categoryDataset != null)
	{
		for (int i = 0; i < categoryDataset.getRowCount(); i++)
		{
			barRenderer3D.setSeriesPaint(i, ChartThemesConstants.EYE_CANDY_SIXTIES_GRADIENT_PAINTS.get(i));
		}
	}
	return jfreeChart;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:EyeCandySixtiesChartTheme.java

示例2: createBar3DChart

import org.jfree.chart.renderer.category.BarRenderer3D; //导入方法依赖的package包/类
@Override
protected JFreeChart createBar3DChart() throws JRException
{
	JFreeChart jfreeChart = super.createBar3DChart();
	CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
	BarRenderer3D barRenderer3D = (BarRenderer3D)categoryPlot.getRenderer();
	barRenderer3D.setItemMargin(0);
	barRenderer3D.setWallPaint(ChartThemesConstants.TRANSPARENT_PAINT);
	//categoryPlot.setOrientation(PlotOrientation.HORIZONTAL);
	CategoryDataset categoryDataset = categoryPlot.getDataset();
	if(categoryDataset != null)
	{
		for(int i = 0; i < categoryDataset.getRowCount(); i++)
		{
			barRenderer3D.setSeriesOutlinePaint(i, ChartThemesConstants.TRANSPARENT_PAINT);
		}
	}
	return jfreeChart;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:20,代码来源:AegeanChartTheme.java

示例3: createStackedBar3DChart

import org.jfree.chart.renderer.category.BarRenderer3D; //导入方法依赖的package包/类
@Override
protected JFreeChart createStackedBar3DChart() throws JRException
{
	JFreeChart jfreeChart = super.createStackedBar3DChart();
	CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
	BarRenderer3D barRenderer3D = (BarRenderer3D)categoryPlot.getRenderer();
	barRenderer3D.setWallPaint(ChartThemesConstants.TRANSPARENT_PAINT);
	barRenderer3D.setItemMargin(0);
	CategoryDataset categoryDataset = categoryPlot.getDataset();
	if(categoryDataset != null)
	{
		for(int i = 0; i < categoryDataset.getRowCount(); i++)
		{
			barRenderer3D.setSeriesOutlinePaint(i, ChartThemesConstants.TRANSPARENT_PAINT);
		}
	}
	return jfreeChart;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:19,代码来源:AegeanChartTheme.java

示例4: createStackedBar3DChart

import org.jfree.chart.renderer.category.BarRenderer3D; //导入方法依赖的package包/类
@Override
protected JFreeChart createStackedBar3DChart() throws JRException
{
	JFreeChart jfreeChart = super.createStackedBar3DChart();
	CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
	BarRenderer3D barRenderer3D = (BarRenderer3D)categoryPlot.getRenderer();
	barRenderer3D.setWallPaint(ChartThemesConstants.TRANSPARENT_PAINT);

	//CategoryDataset categoryDataset = categoryPlot.getDataset();
	barRenderer3D.setItemMargin(0);
	return jfreeChart;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:13,代码来源:EyeCandySixtiesChartTheme.java


注:本文中的org.jfree.chart.renderer.category.BarRenderer3D.setItemMargin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。