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

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

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

XYPlot.zoomRangeAxes介绍

[英]Zooms in on the range axes.
[中]放大范围轴。

代码示例

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

/**
 * Multiplies the range on the range axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param info  the plot rendering info.
 * @param source  the source point.
 *
 * @see #zoomDomainAxes(double, PlotRenderingInfo, Point2D, boolean)
 */
@Override
public void zoomRangeAxes(double factor, PlotRenderingInfo info,
             Point2D source) {
  // delegate to other method
  zoomRangeAxes(factor, info, source, false);
}

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

/**
 * Multiplies the range on the range axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param info  the plot rendering info.
 * @param source  the source point.
 *
 * @see #zoomDomainAxes(double, PlotRenderingInfo, Point2D, boolean)
 */
public void zoomRangeAxes(double factor, PlotRenderingInfo info,
             Point2D source) {
  // delegate to other method
  zoomRangeAxes(factor, info, source, false);
}

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

/**
 * Multiplies the range on the range axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param state  the plot state.
 * @param source  the source point (in Java2D coordinates).
 * @param useAnchor  use source point as zoom anchor?
 */
@Override
public void zoomRangeAxes(double factor, PlotRenderingInfo state,
    Point2D source, boolean useAnchor) {
  // delegate 'state' and 'source' argument checks...
  XYPlot subplot = findSubplot(state, source);
  if (subplot != null) {
    subplot.zoomRangeAxes(factor, state, source, useAnchor);
  } else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    for (XYPlot p : this.subplots) {
      p.zoomRangeAxes(factor, state, source, useAnchor);
    }
  }
}

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

/**
 * Zooms in on the range axes.
 *
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 * @param info  the plot rendering info ({@code null} not permitted).
 * @param source  the source point ({@code null} not permitted).
 */
@Override
public void zoomRangeAxes(double lowerPercent, double upperPercent,
             PlotRenderingInfo info, Point2D source) {
  // delegate 'info' and 'source' argument checks...
  XYPlot subplot = findSubplot(info, source);
  if (subplot != null) {
    subplot.zoomRangeAxes(lowerPercent, upperPercent, info, source);
  } else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    for (XYPlot p : this.subplots) {
      p.zoomRangeAxes(lowerPercent, upperPercent, info, source);
    }
  }
}

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

/**
 * Multiplies the range on the range axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param state  the plot state.
 * @param source  the source point (in Java2D coordinates).
 * @param useAnchor  use source point as zoom anchor?
 */
public void zoomRangeAxes(double factor, PlotRenderingInfo state,
             Point2D source, boolean useAnchor) {
  // delegate 'state' and 'source' argument checks...
  XYPlot subplot = findSubplot(state, source);
  if (subplot != null) {
    subplot.zoomRangeAxes(factor, state, source, useAnchor);
  }
  else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    Iterator iterator = getSubplots().iterator();
    while (iterator.hasNext()) {
      subplot = (XYPlot) iterator.next();
      subplot.zoomRangeAxes(factor, state, source, useAnchor);
    }
  }
}

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

/**
 * Zooms in on the range axes.
 *
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 * @param info  the plot rendering info (<code>null</code> not permitted).
 * @param source  the source point (<code>null</code> not permitted).
 */
public void zoomRangeAxes(double lowerPercent, double upperPercent,
             PlotRenderingInfo info, Point2D source) {
  // delegate 'info' and 'source' argument checks...
  XYPlot subplot = findSubplot(info, source);
  if (subplot != null) {
    subplot.zoomRangeAxes(lowerPercent, upperPercent, info, source);
  }
  else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    Iterator iterator = getSubplots().iterator();
    while (iterator.hasNext()) {
      subplot = (XYPlot) iterator.next();
      subplot.zoomRangeAxes(lowerPercent, upperPercent, info, source);
    }
  }
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法