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

x33g5p2x  于2022-02-02 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(68)

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

XYPlot.handleClick介绍

[英]Handles a 'click' on the plot by updating the anchor values.
[中]通过更新定位值来处理“点击”绘图。

代码示例

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

/**
 * Handles a 'click' on the plot by updating the anchor values.
 *
 * @param x  x-coordinate, where the click occurred.
 * @param y  y-coordinate, where the click occurred.
 * @param info  object containing information about the plot dimensions.
 */
@Override
public void handleClick(int x, int y, PlotRenderingInfo info) {
  Rectangle2D dataArea = info.getDataArea();
  if (dataArea.contains(x, y)) {
    for (int i = 0; i < this.subplots.size(); i++) {
      XYPlot subplot = (XYPlot) this.subplots.get(i);
      PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);
      subplot.handleClick(x, y, subplotInfo);
    }
  }
}

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

/**
 * Handles a 'click' on the plot by updating the anchor values...
 *
 * @param x  x-coordinate, where the click occured.
 * @param y  y-coordinate, where the click occured.
 * @param info  object containing information about the plot dimensions.
 */
@Override
public void handleClick(int x, int y, PlotRenderingInfo info) {
  Rectangle2D dataArea = info.getDataArea();
  if (dataArea.contains(x, y)) {
    for (int i = 0; i < this.subplots.size(); i++) {
      XYPlot subplot = (XYPlot) this.subplots.get(i);
      PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);
      subplot.handleClick(x, y, subplotInfo);
    }
  }
}

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

/**
 * Handles a 'click' on the plot by updating the anchor values.
 *
 * @param x  x-coordinate, where the click occured.
 * @param y  y-coordinate, where the click occured.
 * @param info  object containing information about the plot dimensions.
 */
public void handleClick(int x, int y, PlotRenderingInfo info) {
  Rectangle2D dataArea = info.getDataArea();
  if (dataArea.contains(x, y)) {
    for (int i = 0; i < this.subplots.size(); i++) {
      XYPlot subplot = (XYPlot) this.subplots.get(i);
      PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);
      subplot.handleClick(x, y, subplotInfo);
    }
  }
}

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

/**
 * Handles a 'click' on the plot by updating the anchor values...
 *
 * @param x  x-coordinate, where the click occured.
 * @param y  y-coordinate, where the click occured.
 * @param info  object containing information about the plot dimensions.
 */
public void handleClick(int x, int y, PlotRenderingInfo info) {
  Rectangle2D dataArea = info.getDataArea();
  if (dataArea.contains(x, y)) {
    for (int i = 0; i < this.subplots.size(); i++) {
      XYPlot subplot = (XYPlot) this.subplots.get(i);
      PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);
      subplot.handleClick(x, y, subplotInfo);
    }
  }
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法