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

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

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

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

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

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

相关文章