Package com.positive.charts.axis

Examples of com.positive.charts.axis.ValueAxis.removeChangeListener()


   */
  public void clearDomainAxes() {
    for (int i = 0; i < this.domainAxes.size(); i++) {
      final ValueAxis axis = (ValueAxis) this.domainAxes.get(i);
      if (axis != null) {
        axis.removeChangeListener(this);
      }
    }
    this.domainAxes.clear();
    this.notifyListeners(new PlotChangeEvent(this));
  }
View Full Code Here


   */
  public void clearRangeAxes() {
    for (int i = 0; i < this.rangeAxes.size(); i++) {
      final ValueAxis axis = (ValueAxis) this.rangeAxes.get(i);
      if (axis != null) {
        axis.removeChangeListener(this);
      }
    }
    this.rangeAxes.clear();
    this.notifyListeners(new PlotChangeEvent(this));
  }
View Full Code Here

   */
  public void setDomainAxis(final int index, final ValueAxis axis,
      final boolean notify) {
    final ValueAxis existing = this.getDomainAxis(index);
    if (existing != null) {
      existing.removeChangeListener(this);
    }
    if (axis != null) {
      axis.setPlot(this);
    }
    this.domainAxes.set(index, axis);
View Full Code Here

   */
  public void setRangeAxis(final int index, final ValueAxis axis,
      final boolean notify) {
    final ValueAxis existing = this.getRangeAxis(index);
    if (existing != null) {
      existing.removeChangeListener(this);
    }
    if (axis != null) {
      axis.setPlot(this);
    }
    // XXX Grow the list larger if needed
View Full Code Here

    }

    // plot is likely registered as a listener with the existing axis...
    final ValueAxis existing = this.getRangeAxis();
    if (existing != null) {
      existing.removeChangeListener(this);
    }

    this.rangeAxes.set(0, axis);
    if (axis != null) {
      axis.configure();
View Full Code Here

   */
  public void clearRangeAxes() {
    for (int i = 0; i < this.rangeAxes.size(); i++) {
      final ValueAxis axis = (ValueAxis) this.rangeAxes.get(i);
      if (axis != null) {
        axis.removeChangeListener(this);
      }
    }
    this.rangeAxes.clear();
    this.notifyListeners(new PlotChangeEvent(this));
  }
View Full Code Here

   */
  public void setRangeAxis(final int index, final ValueAxis axis,
      final boolean notify) {
    final ValueAxis existing = (ValueAxis) this.rangeAxes.get(index);
    if (existing != null) {
      existing.removeChangeListener(this);
    }
    if (axis != null) {
      axis.setPlot(this);
    }
    this.rangeAxes.set(index, axis);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.