Examples of ChartChangeListener


Examples of com.positive.charts.event.ChartChangeListener

   */
  protected void notifyListeners(final ChartChangeEvent event) {
    if (this.notify) {
      final Object[] listeners = this.changeListeners.getListeners();
      for (int i = 0; i < listeners.length; i++) {
        final ChartChangeListener listener = (ChartChangeListener) listeners[i];
        listener.chartChanged(event);
      }
    }
  }
View Full Code Here

Examples of org.jfree.chart.event.ChartChangeListener

            }

            coverageChart = new ProteinSequencePanel(Color.WHITE).getSequencePlot(this, new JSparklinesDataset(sparkLineDataSeriesCoverage), blocTooltips, true, true);

            // make sure that the range is the same for both charts (coverage and ptm)
            coverageChart.getChart().addChangeListener(new ChartChangeListener() {
                @Override
                public void chartChanged(ChartChangeEvent cce) {
                    if (ptmChart != null) {
                        Range range = ((CategoryPlot) coverageChart.getChart().getPlot()).getRangeAxis().getRange();
                        ((CategoryPlot) ptmChart.getChart().getPlot()).getRangeAxis().setRange(range);
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.