org.jfree.chart.plot.WaferMapPlot Java Examples

The following examples show how to use org.jfree.chart.plot.WaferMapPlot. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ChartFactory.java    From opensim-gui with Apache License 2.0 6 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param orientation  the plot orientation (horizontal or vertical) 
 *                     (<code>null</code> NOT permitted.
 * @param legend  display a legend?
 * @param tooltips  generate tooltips?
 * @param urls  generate URLs?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
                                             WaferMapDataset dataset,
                                             PlotOrientation orientation,
                                             boolean legend,
                                             boolean tooltips,
                                             boolean urls) {

    if (orientation == null) {
        throw new IllegalArgumentException("Null 'orientation' argument.");
    }
    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);

    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);

    return chart;
}
 
Example #2
Source File: ChartFactory.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param orientation  the plot orientation (horizontal or vertical) 
 *                     (<code>null</code> NOT permitted.
 * @param legend  display a legend?
 * @param tooltips  generate tooltips?
 * @param urls  generate URLs?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
                                             WaferMapDataset dataset,
                                             PlotOrientation orientation,
                                             boolean legend,
                                             boolean tooltips,
                                             boolean urls) {

    if (orientation == null) {
        throw new IllegalArgumentException("Null 'orientation' argument.");
    }
    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);

    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);

    return chart;
}
 
Example #3
Source File: ChartFactory.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param orientation  the plot orientation (horizontal or vertical)
 *                     (<code>null</code> NOT permitted.
 * @param legend  display a legend?
 * @param tooltips  generate tooltips?
 * @param urls  generate URLs?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
        WaferMapDataset dataset, PlotOrientation orientation,
        boolean legend, boolean tooltips, boolean urls) {

    ParamChecks.nullNotPermitted(orientation, "orientation");
    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);

    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;
}
 
Example #4
Source File: WaferMapRenderer.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 * 
 * @return The drawing supplier.
 */
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #5
Source File: WaferMapRenderer.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 * 
 * @return The drawing supplier.
 */
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #6
Source File: WaferMapRenderer.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 *
 * @return The drawing supplier.
 */
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #7
Source File: ChartFactory.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param legend  display a legend?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
        WaferMapDataset dataset, boolean legend) {

    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);
    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;
    
}
 
Example #8
Source File: ChartFactory.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param orientation  the plot orientation (horizontal or vertical)
 *                     (<code>null</code> NOT permitted.
 * @param legend  display a legend?
 * @param tooltips  generate tooltips?
 * @param urls  generate URLs?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
        WaferMapDataset dataset, PlotOrientation orientation,
        boolean legend, boolean tooltips, boolean urls) {

    ParamChecks.nullNotPermitted(orientation, "orientation");
    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);

    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;
}
 
Example #9
Source File: WaferMapRenderer.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 *
 * @return The drawing supplier.
 */
@Override
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #10
Source File: WaferMapRenderer.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 *
 * @return The drawing supplier.
 */
@Override
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #11
Source File: WaferMapRenderer.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 *
 * @return The drawing supplier.
 */
@Override
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #12
Source File: ChartFactory.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param orientation  the plot orientation (horizontal or vertical)
 *                     (<code>null</code> NOT permitted.
 * @param legend  display a legend?
 * @param tooltips  generate tooltips?
 * @param urls  generate URLs?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
        WaferMapDataset dataset, PlotOrientation orientation,
        boolean legend, boolean tooltips, boolean urls) {

    ParamChecks.nullNotPermitted(orientation, "orientation");
    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);

    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;
}
 
Example #13
Source File: ChartFactory.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param orientation  the plot orientation (horizontal or vertical)
 *                     (<code>null</code> NOT permitted.
 * @param legend  display a legend?
 * @param tooltips  generate tooltips?
 * @param urls  generate URLs?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
        WaferMapDataset dataset, PlotOrientation orientation,
        boolean legend, boolean tooltips, boolean urls) {

    ParamChecks.nullNotPermitted(orientation, "orientation");
    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);

    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;
}
 
Example #14
Source File: WaferMapRenderer.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 *
 * @return The drawing supplier.
 */
@Override
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #15
Source File: WaferMapRenderer.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 *
 * @return The drawing supplier.
 */
@Override
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #16
Source File: ChartFactory.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param orientation  the plot orientation (horizontal or vertical)
 *                     (<code>null</code> NOT permitted.
 * @param legend  display a legend?
 * @param tooltips  generate tooltips?
 * @param urls  generate URLs?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
        WaferMapDataset dataset, PlotOrientation orientation,
        boolean legend, boolean tooltips, boolean urls) {

    ParamChecks.nullNotPermitted(orientation, "orientation");
    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);

    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;
}
 
Example #17
Source File: ChartFactory.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a wafer map chart.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param orientation  the plot orientation (horizontal or vertical)
 *                     (<code>null</code> NOT permitted.
 * @param legend  display a legend?
 * @param tooltips  generate tooltips?
 * @param urls  generate URLs?
 *
 * @return A wafer map chart.
 */
public static JFreeChart createWaferMapChart(String title,
        WaferMapDataset dataset, PlotOrientation orientation,
        boolean legend, boolean tooltips, boolean urls) {

    ParamChecks.nullNotPermitted(orientation, "orientation");
    WaferMapPlot plot = new WaferMapPlot(dataset);
    WaferMapRenderer renderer = new WaferMapRenderer();
    plot.setRenderer(renderer);

    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;
}
 
Example #18
Source File: WaferMapRenderer.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the drawing supplier from the plot.
 *
 * @return The drawing supplier.
 */
@Override
public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    WaferMapPlot p = getPlot();
    if (p != null) {
        result = p.getDrawingSupplier();
    }
    return result;
}
 
Example #19
Source File: WaferMapRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the plot and build the paint index.
 *
 * @param plot  the plot.
 */
public void setPlot(WaferMapPlot plot) {
    this.plot = plot;
    makePaintIndex();
}
 
Example #20
Source File: WaferMapRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the plot.
 *
 * @return The plot.
 */
public WaferMapPlot getPlot() {
    return this.plot;
}
 
Example #21
Source File: WaferMapRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the plot and build the paint index.
 *
 * @param plot  the plot.
 */
public void setPlot(WaferMapPlot plot) {
    this.plot = plot;
    makePaintIndex();
}
 
Example #22
Source File: WaferMapRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the plot and build the paint index.
 * 
 * @param plot  the plot.
 */
public void setPlot(WaferMapPlot plot) {
    this.plot = plot;
    makePaintIndex();
}
 
Example #23
Source File: WaferMapRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the plot.
 * 
 * @return The plot.
 */
public WaferMapPlot getPlot() {
    return this.plot;
}
 
Example #24
Source File: WaferMapRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the plot.
 *
 * @return The plot.
 */
public WaferMapPlot getPlot() {
    return this.plot;
}
 
Example #25
Source File: WaferMapRenderer.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the plot and build the paint index.
 * 
 * @param plot  the plot.
 */
public void setPlot(WaferMapPlot plot) {
    this.plot = plot;
    makePaintIndex();
}
 
Example #26
Source File: WaferMapRenderer.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the plot.
 * 
 * @return The plot.
 */
public WaferMapPlot getPlot() {
    return this.plot;
}
 
Example #27
Source File: WaferMapRenderer.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the plot and build the paint index.
 *
 * @param plot  the plot.
 */
public void setPlot(WaferMapPlot plot) {
    this.plot = plot;
    makePaintIndex();
}
 
Example #28
Source File: WaferMapRenderer.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the plot.
 *
 * @return The plot.
 */
public WaferMapPlot getPlot() {
    return this.plot;
}
 
Example #29
Source File: WaferMapRenderer.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the plot and build the paint index.
 *
 * @param plot  the plot.
 */
public void setPlot(WaferMapPlot plot) {
    this.plot = plot;
    makePaintIndex();
}
 
Example #30
Source File: WaferMapRenderer.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns the plot.
 *
 * @return The plot.
 */
public WaferMapPlot getPlot() {
    return this.plot;
}