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

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

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

Plot.isNotify介绍

[英]Returns a flag that controls whether or not change events are sent to registered listeners.
[中]返回一个标志,该标志控制是否将更改事件发送给已注册的侦听器。

代码示例

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

/**
 * Restores the auto-range calculation on the domain axis.
 */
public void restoreAutoDomainBounds() {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    Zoomable z = (Zoomable) plot;
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    // we need to guard against this.zoomPoint being null
    Point2D zp = (this.zoomPoint != null
        ? this.zoomPoint : new Point());
    z.zoomDomainAxes(0.0, this.info.getPlotInfo(), zp);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Restores the auto-range calculation on the range axis.
 */
public void restoreAutoRangeBounds() {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    Zoomable z = (Zoomable) plot;
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    // we need to guard against this.zoomPoint being null
    Point2D zp = (this.zoomPoint != null
        ? this.zoomPoint : new Point());
    z.zoomRangeAxes(0.0, this.info.getPlotInfo(), zp);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Restores the auto-range calculation on the range axis.
 */
public void restoreAutoRangeBounds() {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    Zoomable z = (Zoomable) plot;
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    // we need to guard against this.zoomPoint being null
    Point2D zp = (this.zoomPoint != null
        ? this.zoomPoint : new Point());
    z.zoomRangeAxes(0.0, this.info.getPlotInfo(), zp);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Restores the auto-range calculation on the domain axis.
 */
public void restoreAutoDomainBounds() {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    Zoomable z = (Zoomable) plot;
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    // we need to guard against this.zoomPoint being null
    Point2D zp = (this.zoomPoint != null
        ? this.zoomPoint : new Point());
    z.zoomDomainAxes(0.0, this.info.getPlotInfo(), zp);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Decreases the length of the domain axis, centered about the given
 * coordinate on the screen.  The length of the domain axis is reduced
 * by the value of {@link #getZoomInFactor()}.
 *
 * @param x  the x coordinate (in screen coordinates).
 * @param y  the y-coordinate (in screen coordinates).
 */
public void zoomInDomain(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    Zoomable z = (Zoomable) plot;
    z.zoomDomainAxes(this.zoomInFactor, this.info.getPlotInfo(),
        translateScreenToJava2D(new Point((int) x, (int) y)),
        this.zoomAroundAnchor);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Increases the length the range axis, centered about the given
 * coordinate on the screen.  The length of the range axis is increased
 * by the value of {@link #getZoomOutFactor()}.
 *
 * @param x  the x coordinate (in screen coordinates).
 * @param y  the y-coordinate (in screen coordinates).
 */
public void zoomOutRange(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    Zoomable z = (Zoomable) plot;
    z.zoomRangeAxes(this.zoomOutFactor, this.info.getPlotInfo(),
        translateScreenToJava2D(new Point((int) x, (int) y)),
        this.zoomAroundAnchor);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Increases the length of the domain axis, centered about the given
 * coordinate on the screen.  The length of the domain axis is increased
 * by the value of {@link #getZoomOutFactor()}.
 *
 * @param x  the x coordinate (in screen coordinates).
 * @param y  the y-coordinate (in screen coordinates).
 */
public void zoomOutDomain(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    Zoomable z = (Zoomable) plot;
    z.zoomDomainAxes(this.zoomOutFactor, this.info.getPlotInfo(),
        translateScreenToJava2D(new Point((int) x, (int) y)),
        this.zoomAroundAnchor);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Restores the auto-range calculation on both axes.
 */
public void restoreAutoBounds() {
  Plot plot = this.chart.getPlot();
  if (plot == null) {
    return;
  }
  // here we tweak the notify flag on the plot so that only
  // one notification happens even though we update multiple
  // axes...
  boolean savedNotify = plot.isNotify();
  plot.setNotify(false);
  restoreAutoDomainBounds();
  restoreAutoRangeBounds();
  plot.setNotify(savedNotify);
}

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

/**
 * Restores the auto-range calculation on both axes.
 */
public void restoreAutoBounds() {
  Plot plot = this.chart.getPlot();
  if (plot == null) {
    return;
  }
  // here we tweak the notify flag on the plot so that only
  // one notification happens even though we update multiple
  // axes...
  boolean savedNotify = plot.isNotify();
  plot.setNotify(false);
  restoreAutoDomainBounds();
  restoreAutoRangeBounds();
  plot.setNotify(savedNotify);
}

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

/**
 * Decreases the length of the domain axis, centered about the given
 * coordinate on the screen.  The length of the domain axis is reduced
 * by the value of {@link #getZoomInFactor()}.
 *
 * @param x  the x coordinate (in screen coordinates).
 * @param y  the y-coordinate (in screen coordinates).
 */
public void zoomInDomain(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    Zoomable z = (Zoomable) plot;
    z.zoomDomainAxes(this.zoomInFactor, this.info.getPlotInfo(),
        translateScreenToJava2D(new Point((int) x, (int) y)),
        this.zoomAroundAnchor);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Decreases the length of the range axis, centered about the given
 * coordinate on the screen.  The length of the range axis is reduced by
 * the value of {@link #getZoomInFactor()}.
 *
 * @param x  the x-coordinate (in screen coordinates).
 * @param y  the y coordinate (in screen coordinates).
 */
public void zoomInRange(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    Zoomable z = (Zoomable) plot;
    z.zoomRangeAxes(this.zoomInFactor, this.info.getPlotInfo(),
        translateScreenToJava2D(new Point((int) x, (int) y)),
        this.zoomAroundAnchor);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Zooms out on an anchor point (specified in screen coordinate space).
 *
 * @param x  the x value (in screen coordinates).
 * @param y  the y value (in screen coordinates).
 */
public void zoomOutBoth(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot == null) {
    return;
  }
  // here we tweak the notify flag on the plot so that only
  // one notification happens even though we update multiple
  // axes...
  boolean savedNotify = plot.isNotify();
  plot.setNotify(false);
  zoomOutDomain(x, y);
  zoomOutRange(x, y);
  plot.setNotify(savedNotify);
}

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

/**
 * Decreases the length of the range axis, centered about the given
 * coordinate on the screen.  The length of the range axis is reduced by
 * the value of {@link #getZoomInFactor()}.
 *
 * @param x  the x-coordinate (in screen coordinates).
 * @param y  the y coordinate (in screen coordinates).
 */
public void zoomInRange(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    Zoomable z = (Zoomable) plot;
    z.zoomRangeAxes(this.zoomInFactor, this.info.getPlotInfo(),
        translateScreenToJava2D(new Point((int) x, (int) y)),
        this.zoomAroundAnchor);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Increases the length of the domain axis, centered about the given
 * coordinate on the screen.  The length of the domain axis is increased
 * by the value of {@link #getZoomOutFactor()}.
 *
 * @param x  the x coordinate (in screen coordinates).
 * @param y  the y-coordinate (in screen coordinates).
 */
public void zoomOutDomain(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    Zoomable z = (Zoomable) plot;
    z.zoomDomainAxes(this.zoomOutFactor, this.info.getPlotInfo(),
        translateScreenToJava2D(new Point((int) x, (int) y)),
        this.zoomAroundAnchor);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Increases the length the range axis, centered about the given
 * coordinate on the screen.  The length of the range axis is increased
 * by the value of {@link #getZoomOutFactor()}.
 *
 * @param x  the x coordinate (in screen coordinates).
 * @param y  the y-coordinate (in screen coordinates).
 */
public void zoomOutRange(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot instanceof Zoomable) {
    // here we tweak the notify flag on the plot so that only
    // one notification happens even though we update multiple
    // axes...
    boolean savedNotify = plot.isNotify();
    plot.setNotify(false);
    Zoomable z = (Zoomable) plot;
    z.zoomRangeAxes(this.zoomOutFactor, this.info.getPlotInfo(),
        translateScreenToJava2D(new Point((int) x, (int) y)),
        this.zoomAroundAnchor);
    plot.setNotify(savedNotify);
  }
}

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

/**
 * Zooms in on an anchor point (specified in screen coordinate space).
 *
 * @param x  the x value (in screen coordinates).
 * @param y  the y value (in screen coordinates).
 */
public void zoomInBoth(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot == null) {
    return;
  }
  // here we tweak the notify flag on the plot so that only
  // one notification happens even though we update multiple
  // axes...
  boolean savedNotify = plot.isNotify();
  plot.setNotify(false);
  zoomInDomain(x, y);
  zoomInRange(x, y);
  plot.setNotify(savedNotify);
}

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

/**
 * Zooms out on an anchor point (specified in screen coordinate space).
 *
 * @param x  the x value (in screen coordinates).
 * @param y  the y value (in screen coordinates).
 */
public void zoomOutBoth(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot == null) {
    return;
  }
  // here we tweak the notify flag on the plot so that only
  // one notification happens even though we update multiple
  // axes...
  boolean savedNotify = plot.isNotify();
  plot.setNotify(false);
  zoomOutDomain(x, y);
  zoomOutRange(x, y);
  plot.setNotify(savedNotify);
}

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

/**
 * Zooms in on an anchor point (specified in screen coordinate space).
 *
 * @param x  the x value (in screen coordinates).
 * @param y  the y value (in screen coordinates).
 */
public void zoomInBoth(double x, double y) {
  Plot plot = this.chart.getPlot();
  if (plot == null) {
    return;
  }
  // here we tweak the notify flag on the plot so that only
  // one notification happens even though we update multiple
  // axes...
  boolean savedNotify = plot.isNotify();
  plot.setNotify(false);
  zoomInDomain(x, y);
  zoomInRange(x, y);
  plot.setNotify(savedNotify);
}

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

boolean notifyState = plot.isNotify();
plot.setNotify(false);
int clicks = e.getWheelRotation();

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

boolean old = plot.isNotify();

相关文章