Package com.positive.charts.event

Examples of com.positive.charts.event.DatasetChangeEvent


      this.seriesList.add(data);
    } else { // replace an existing series
      this.seriesList.remove(seriesIndex);
      this.seriesList.add(seriesIndex, data);
    }
    this.notifyListeners(new DatasetChangeEvent(this, this));
  }
View Full Code Here


  /**
   * Notifies all registered listeners that the dataset has changed.
   */
  protected void fireDatasetChanged() {
    this.notifyListeners(new DatasetChangeEvent(this, this));
  }
View Full Code Here

  public void removeSeries(final Comparable seriesKey) {
    final int seriesIndex = this.indexOf(seriesKey);
    if (seriesIndex >= 0) {
      this.seriesKeys.remove(seriesIndex);
      this.seriesList.remove(seriesIndex);
      this.notifyListeners(new DatasetChangeEvent(this, this));
    }
  }
View Full Code Here

  public void mapDatasetToDomainAxis(final int index, final int axisIndex) {
    this.datasetToDomainAxisMap.put(new Integer(index), new Integer(
        axisIndex));
    // fake a dataset change event to update axes...
    this
        .datasetChanged(new DatasetChangeEvent(this, this
            .getDataset(index)));
  }
View Full Code Here

  public void mapDatasetToRangeAxis(final int index, final int axisIndex) {
    this.datasetToRangeAxisMap.put(new Integer(index), new Integer(
        axisIndex));
    // fake a dataset change event to update axes...
    this
        .datasetChanged(new DatasetChangeEvent(this, this
            .getDataset(index)));
  }
View Full Code Here

    if (dataset != null) {
      dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    final DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    this.datasetChanged(event);
  }
View Full Code Here

   */
  public void mapDatasetToDomainAxis(final int index, final int axisIndex) {
    this.datasetToDomainAxisMap.set(index, new Integer(axisIndex));
    // fake a dataset change event to update axes...
    this
        .datasetChanged(new DatasetChangeEvent(this, this
            .getDataset(index)));
  }
View Full Code Here

   */
  public void mapDatasetToRangeAxis(final int index, final int axisIndex) {
    this.datasetToRangeAxisMap.set(index, new Integer(axisIndex));
    // fake a dataset change event to update axes...
    this
        .datasetChanged(new DatasetChangeEvent(this, this
            .getDataset(index)));
  }
View Full Code Here

    if (dataset != null) {
      dataset.addChangeListener(this);
    }

    // send a dataset change event to self...
    final DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
    this.datasetChanged(event);

  }
View Full Code Here

   *             <code>includeInterval</code> flag in methods such as
   *             {@link #getDomainBounds(boolean)} makes this unnecessary.
   */
  public void setDomainIsPointsInTime(final boolean flag) {
    this.domainIsPointsInTime = flag;
    this.notifyListeners(new DatasetChangeEvent(this, this));
  }
View Full Code Here

TOP

Related Classes of com.positive.charts.event.DatasetChangeEvent

Copyright © 2018 www.massapicom. 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.