org.jfree.chart.plot.Plot.setBackgroundImage()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.jfree.chart.plot.Plot.setBackgroundImage()方法的一些代码示例,展示了Plot.setBackgroundImage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plot.setBackgroundImage()方法的具体详情如下:
包路径:org.jfree.chart.plot.Plot
类名称:Plot
方法名:setBackgroundImage

Plot.setBackgroundImage介绍

[英]Sets the background image for the plot and sends a PlotChangeEvent to all registered listeners.
[中]设置绘图的背景图像,并向所有注册的侦听器发送PlotChangeEvent。

代码示例

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

public ChartPanel getPlotCanvas() {
  final JFreeChart chart = ChartFactory.createPieChart(
      "JBroFuzz Status Code Pie Chart", dataset, true, // legend?
      true, // tooltips?
      false // URLs?
  );
  final Plot plot = chart.getPlot();
  plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
  plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
  return new ChartPanel(chart);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

chart.getPlot().setBackgroundImage(image);

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

public ChartPanel getPlotCanvas() {
  final JFreeChart chart = ChartFactory.createBarChart(
      "JBroFuzz Jaccard Index Bar Chart", // chart title
      "File Name", // domain axis label
      "Jaccard Similarity Coefficient", // range axis label
      dataset, // data
      PlotOrientation.VERTICAL, // orientation
      false, // include legend
      true, // tooltips?
      true // URLs?
  );
  final Plot plot = chart.getPlot();
  plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
  plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
  final CategoryItemRenderer renderer = chart.getCategoryPlot().getRenderer();
  renderer
  .setBaseToolTipGenerator(new StandardCategoryToolTipGenerator());
  return new ChartPanel(chart);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

Image image = ImageIO.read(rinfo.getInputStream());
rinfo.getInputStream().close();
chart.getPlot().setBackgroundImage(image);

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

public ChartPanel getPlotCanvas() {
  final JFreeChart chart = ChartFactory.createBarChart(
      "JBroFuzz Response Size Bar Chart", // chart title
      "File Name", // domain axis label
      "Response Size (bytes)", // range axis label
      dataset, // data
      PlotOrientation.VERTICAL, // orientation
      false, // include legend
      true, // tooltips?
      true // URLs?
  );
  final Plot plot = chart.getPlot();
  plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
  plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
  final CategoryItemRenderer renderer = 
                chart.getCategoryPlot().getRenderer();
  renderer.setBaseToolTipGenerator(
                new StandardCategoryToolTipGenerator());
  return new ChartPanel(chart);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

chart.getPlot().setBackgroundImage(image);

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

public ChartPanel getPlotCanvas() {
  final JFreeChart chart = ChartFactory.createBarChart(
      "JBroFuzz Response Time Bar Chart", // chart title
      "File Name", // domain axis label
      "Response Time (ms)", // range axis label
      dataset, // data
      PlotOrientation.VERTICAL, // orientation
      false, // include legend
      true, // tooltips?
      true // URLs?
  );
  final Plot plot = chart.getPlot();
  plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
  plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
  final CategoryItemRenderer renderer = 
                  chart.getCategoryPlot().getRenderer();
  renderer.setBaseToolTipGenerator(
                new StandardCategoryToolTipGenerator());
  return new ChartPanel(chart);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

chart.getPlot().setBackgroundImage(image);

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

public ChartPanel getPlotCanvas() {
  final JFreeChart chart = ChartFactory.createBarChart(
      "JBroFuzz Response Header Size Bar Chart", // chart title
      "File Name", // domain axis label
      "Response Header Size (bytes)", // range axis label
      dataset, // data
      PlotOrientation.VERTICAL, // orientation
      false, // include legend
      true, // tooltips?
      true // URLs?
  );
  final Plot plot = chart.getPlot();
  plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
  plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
  final CategoryItemRenderer renderer = 
                chart.getCategoryPlot().getRenderer();
  renderer.setBaseToolTipGenerator(
                new StandardCategoryToolTipGenerator());
  return new ChartPanel(chart);
}

代码示例来源:origin: pentaho/pentaho-platform

private static void updatePlot( final Plot plot, final ChartDefinition chartDefinition ) {
 plot.setBackgroundPaint( chartDefinition.getPlotBackgroundPaint() );
 plot.setBackgroundImage( chartDefinition.getPlotBackgroundImage() );

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

public ChartPanel getPlotCanvas() {
  final JFreeChart chart = ChartFactory.createBarChart(
      "JBroFuzz Hamming Distance Bar Chart", // chart title
      "File Name", // domain axis label
      "Hamming Distance", // range axis label
      dataset, // data
      PlotOrientation.VERTICAL, // orientation
      false, // include legend
      true, // tooltips?
      true // URLs?
  );
  final Plot plot = chart.getPlot();
  plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
  plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
  final CategoryItemRenderer renderer = 
                chart.getCategoryPlot().getRenderer();
  renderer.setBaseToolTipGenerator(
      new StandardCategoryToolTipGenerator());
  return new ChartPanel(chart);
}

相关文章