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


Java BarRenderer3D.setDrawBarOutline方法代码示例

本文整理汇总了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;

  }
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:35,代码来源:BarChart3DDemo1.java

示例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);
}
 
开发者ID:MToLinux,项目名称:VisualCenter,代码行数:19,代码来源:ProcessChart.java

示例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;
	}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:44,代码来源:CCRP.java


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