Java 类org.jfree.chart.event.ChartChangeEvent 实例源码

项目:open-java-trade-manager    文件:ChartJDialog.java   
private ChartChangeListener getChartChangeListner() {
    return new ChartChangeListener() {
        @Override
        public void chartChanged(ChartChangeEvent event) {
            // Is weird. This works well for zoom-in. When we add new CCI or
            // RIS. This event function will be triggered too. However, the
            // returned draw area will always be the old draw area, unless
            // you move your move over.
            // Even I try to capture event.getType() == ChartChangeEventType.NEW_DATASET
            // also doesn't work.
            if (event.getType() == ChartChangeEventType.GENERAL) {
                ChartJDialog.this.chartLayerUI.updateTraceInfos();
                // Re-calculating high low value.
                ChartJDialog.this.updateHighLowJLabels();
            }
        }
    };
}
项目:PhET    文件:JFreeChartNode.java   
/**
 * Receives notification of changes to the chart (or any of its components),
 * and redraws the chart.
 *
 * @param event
 */
public void chartChanged( ChartChangeEvent event ) {

    /* 
     * Do not look at event.getSource(), since the source of the event is
     * likely to be one of the chart's components rather than the chart itself.
     */
    if ( event.getType() == ChartChangeEventType.DATASET_UPDATED ) {
        repaint();
    }
    else if ( event.getType() == ChartChangeEventType.NEW_DATASET ) {
        repaint();
    }
    else {
        updateAll();
    }
}
项目:rapidminer    文件:AbstractChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 * 
 * @param event
 *            details of the chart change event.
 */

@Override
public void chartChanged(ChartChangeEvent event) {
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:parabuild-ci    文件:JFreeChart.java   
/**
 * Sets a flag that controls whether or not listeners receive {@link ChartChangeEvent}
 * notifications.
 *
 * @param notify  a boolean.
 */
public void setNotify(boolean notify) {
    this.notify = notify;
    // if the flag is being set to true, there may be queued up changes...
    if (notify) {
        notifyListeners(new ChartChangeEvent(this));
    }
}
项目:parabuild-ci    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the notification.
 */
protected void notifyListeners(ChartChangeEvent event) {

    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(event);
            }
        }
    }

}
项目:parabuild-ci    文件:ChartComposite.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = chart.getPlot();
    if (plot instanceof Zoomable) 
    {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    this.redraw();
}
项目:parabuild-ci    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:parabuild-ci    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the 
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:ccu-historian    文件:ChartComposite.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    this.canvas.redraw();
}
项目:ccu-historian    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
@Override
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:ccu-historian    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:jfreechart    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
@Override
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:jfreechart    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:aya-lang    文件:ChartComposite.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    this.canvas.redraw();
}
项目:aya-lang    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
@Override
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:aya-lang    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:rapidminer-studio    文件:AbstractChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 * 
 * @param event
 *            details of the chart change event.
 */

@Override
public void chartChanged(ChartChangeEvent event) {
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:eamaster    文件:ApproximationSetViewer.java   
@Override
public void chartChanged(ChartChangeEvent e) {
       try {
           zoomRangeBounds = e.getChart().getXYPlot().getRangeAxis().getRange();
           zoomDomainBounds = e.getChart().getXYPlot().getDomainAxis().getRange();
           useZoomBounds.setSelected(true);
       } catch (Exception e1) {
           e1.printStackTrace();
       }
   }
项目:eamaster    文件:PlotSaver.java   
@Override
public void chartChanged(ChartChangeEvent event) {
    JFreeChart chart = event.getChart();
    if (chart != null) {
        renderToSvg(chart);
    }
}
项目:HTML5_WebSite    文件:MotionChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:HTML5_WebSite    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:HTML5_WebSite    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:populus    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
@Override
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:populus    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:PI    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:PI    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:manydesigns.cn    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
@Override
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:nabs    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:nabs    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the 
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:ECG-Viewer    文件:ChartComposite.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    this.canvas.redraw();
}
项目:group-five    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:group-five    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
@Override
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:ECG-Viewer    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
@Override
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:ECG-Viewer    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:astor    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = this.chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:astor    文件:JFreeChart.java   
/**
 * Sends a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param event  information about the event that triggered the
 *               notification.
 */
protected void notifyListeners(ChartChangeEvent event) {
    if (this.notify) {
        Object[] listeners = this.changeListeners.getListenerList();
        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ChartChangeListener.class) {
                ((ChartChangeListener) listeners[i + 1]).chartChanged(
                        event);
            }
        }
    }
}
项目:opensim-gui    文件:ChartPanel.java   
/**
 * Receives notification of changes to the chart, and redraws the chart.
 *
 * @param event  details of the chart change event.
 */
public void chartChanged(ChartChangeEvent event) {
    this.refreshBuffer = true;
    Plot plot = chart.getPlot();
    if (plot instanceof Zoomable) {
        Zoomable z = (Zoomable) plot;
        this.orientation = z.getOrientation();
    }
    repaint();
}
项目:opensim-gui    文件:JFreeChart.java   
/**
 * Sets the padding between the chart border and the chart drawing area,
 * and sends a {@link ChartChangeEvent} to all registered listeners.
 * 
 * @param padding  the padding (<code>null</code> not permitted).
 */
public void setPadding(RectangleInsets padding) {
    if (padding == null) {
        throw new IllegalArgumentException("Null 'padding' argument.");   
    }
    this.padding = padding;
    notifyListeners(new ChartChangeEvent(this));
}
项目:opensim-gui    文件:JFreeChart.java   
/**
 * Sets a flag that controls whether or not listeners receive 
 * {@link ChartChangeEvent} notifications.
 *
 * @param notify  a boolean.
 */
public void setNotify(boolean notify) {
    this.notify = notify;
    // if the flag is being set to true, there may be queued up changes...
    if (notify) {
        notifyListeners(new ChartChangeEvent(this));
    }
}
项目:manydesigns.cn    文件:JFreeChart.java   
/**
 * Sets a flag that controls whether or not listeners receive {@link ChartChangeEvent} notifications.
 * 
 * @param notify a boolean.
 * @see #isNotify()
 */
public void setNotify(boolean notify) {
    this.notify = notify;
    // if the flag is being set to true, there may be queued up changes...
    if (notify) {
        notifyListeners(new ChartChangeEvent(this));
    }
}