本文整理汇总了Java中org.jfree.chart.renderer.category.BarRenderer3D.setDrawBarOutline方法的典型用法代码示例。如果您正苦于以下问题:Java BarRenderer3D.setDrawBarOutline方法的具体用法?Java BarRenderer3D.setDrawBarOutline怎么用?Java BarRenderer3D.setDrawBarOutline使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.renderer.category.BarRenderer3D
的用法示例。
在下文中一共展示了BarRenderer3D.setDrawBarOutline方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createChart
import org.jfree.chart.renderer.category.BarRenderer3D; //导入方法依赖的package包/类
/**
* Creates a 3D bar chart.
*
* @param dataset the category dataset.
*
* @return The chart.
*/
protected JFreeChart createChart(CategoryDataset dataset) {
JFreeChart chart = ChartFactory.createBarChart3D(
chartTitle, // chart title
domainLabel, // domain axis label
rangeLabel, // range axis label
dataset, // data
PlotOrientation.VERTICAL, // orientation
!legendPanelOn, // include legend
true, // tooltips
false // urls
);
CategoryPlot plot = chart.getCategoryPlot();
plot.setDomainGridlinesVisible(true);
CategoryAxis axis = plot.getDomainAxis();
axis.setCategoryLabelPositions(
CategoryLabelPositions.createUpRotationLabelPositions(
Math.PI / 8.0));
BarRenderer3D renderer = (BarRenderer3D) plot.getRenderer();
renderer.setLegendItemLabelGenerator(new SOCRCategorySeriesLabelGenerator());
renderer.setDrawBarOutline(false);
setCategorySummary(dataset);
return chart;
}
示例2: ProcessChart
import org.jfree.chart.renderer.category.BarRenderer3D; //导入方法依赖的package包/类
/**
* @param parent
* @param style
*/
public ProcessChart(Composite parent, int style, String title) {
super(parent, style);
JFreeChart jfreechart = ChartFactory.createBarChart3D(title, "PIDs", "Usage", this.dataset, PlotOrientation.VERTICAL, true, true, false);
CategoryPlot categoryplot = (CategoryPlot)jfreechart.getPlot();
categoryplot.setOutlineVisible(false);
categoryplot.setDomainGridlinesVisible(true);
CategoryAxis categoryaxis = categoryplot.getDomainAxis();
categoryaxis.setCategoryLabelPositions(CategoryLabelPositions.createUpRotationLabelPositions(0.39269908169872414D));
categoryaxis.setCategoryMargin(0.1D);
BarRenderer3D barrenderer3d = (BarRenderer3D)categoryplot.getRenderer();
barrenderer3d.setDrawBarOutline(false);
this.setLayout(new FillLayout());
ChartComposite comp=new ChartComposite(this,SWT.NONE,jfreechart,true);
}
示例3: createChart
import org.jfree.chart.renderer.category.BarRenderer3D; //导入方法依赖的package包/类
private JFreeChart createChart(CategoryDataset dataset, String title, MUOM uom) {
JFreeChart chart = ChartFactory.createBarChart3D(
title ,
Msg.translate(Env.getCtx(), "Day"), // X-Axis label
Msg.translate(Env.getCtx(), (uom == null) ? "" : uom.getName()), // Y-Axis label
dataset, // Dataset
PlotOrientation.VERTICAL, // orientation
true, // include legend
true, // tooltips?
false // URLs?
);
chart.setBackgroundPaint(Color.WHITE);
chart.setAntiAlias(true);
chart.setBorderVisible(true);
CategoryPlot plot = chart.getCategoryPlot();
plot.setRangeGridlinesVisible(true);
plot.setRangeGridlinePaint(Color.GRAY);
plot.setDomainGridlinesVisible(true);
plot.setDomainGridlinePaint(Color.GRAY);
BarRenderer3D barrenderer = (BarRenderer3D)plot.getRenderer();
barrenderer.setDrawBarOutline(false);
barrenderer.setBaseItemLabelGenerator(new LabelGenerator());
//barrenderer.setBaseLabelGenerator(new LabelGenerator());
barrenderer.setBaseItemLabelsVisible(true);
barrenderer.setSeriesPaint(0, new Color(10, 80, 150, 128));
barrenderer.setSeriesPaint(1, new Color(180, 60, 50, 128));
ItemLabelPosition itemlabelposition = new ItemLabelPosition(ItemLabelAnchor.OUTSIDE12, TextAnchor.TOP_CENTER);
barrenderer.setPositiveItemLabelPosition(itemlabelposition);
CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setCategoryLabelPositions(
CategoryLabelPositions.createUpRotationLabelPositions(Math.PI / 6.0)
);
return chart;
}