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

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

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

Plot.drawBackgroundImage介绍

[英]Draws the background image (if there is one) aligned within the specified area.
[中]绘制在指定区域内对齐的背景图像(如果有)。

代码示例

代码示例来源:origin: jfree/jfreechart

  1. /**
  2. * Draws the plot background (the background color and/or image).
  3. * <P>
  4. * This method will be called during the chart drawing process and is
  5. * declared public so that it can be accessed by the renderers used by
  6. * certain subclasses. You shouldn't need to call this method directly.
  7. *
  8. * @param g2 the graphics device.
  9. * @param area the area within which the plot should be drawn.
  10. */
  11. public void drawBackground(Graphics2D g2, Rectangle2D area) {
  12. // some subclasses override this method completely, so don't put
  13. // anything here that *must* be done
  14. fillBackground(g2, area);
  15. drawBackgroundImage(g2, area);
  16. }

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

  1. /**
  2. * Draws the plot background (the background color and/or image).
  3. * <P>
  4. * This method will be called during the chart drawing process and is
  5. * declared public so that it can be accessed by the renderers used by
  6. * certain subclasses. You shouldn't need to call this method directly.
  7. *
  8. * @param g2 the graphics device.
  9. * @param area the area within which the plot should be drawn.
  10. */
  11. public void drawBackground(Graphics2D g2, Rectangle2D area) {
  12. // some subclasses override this method completely, so don't put
  13. // anything here that *must* be done
  14. fillBackground(g2, area);
  15. drawBackgroundImage(g2, area);
  16. }

相关文章