Examples of XYLineAndShapeRenderer


Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

            XYSeriesCollection dataset = new XYSeriesCollection(series1);
            JFreeChart chart = ChartFactory.createXYLineChart("Pile Displacement", "Depth (m)", "Displacement (mm)", dataset, PlotOrientation.HORIZONTAL, true, true, false);
           
            XYPlot plot = (XYPlot) chart.getPlot();
            plot.setAxisOffset(new RectangleInsets(2.0, 2.0, 2.0, 2.0));
            XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
            renderer.setShapesVisible(true);
            plot.setBackgroundPaint(Color.WHITE);
            plot.setRangeGridlinePaint(Color.GRAY);
            plot.setDomainGridlinePaint(Color.GRAY);
            return chart;
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

            }
            XYSeriesCollection dataset = new XYSeriesCollection(series1);
            JFreeChart chart = ChartFactory.createXYLineChart("Soil Movement", "Depth (m)", "Soil Movement (mm)", dataset, PlotOrientation.HORIZONTAL, true, true, false);
            XYPlot plot = (XYPlot) chart.getPlot();
            plot.setAxisOffset(new RectangleInsets(2.0, 2.0, 2.0, 2.0));
            XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
            renderer.setShapesVisible(true);
            plot.setBackgroundPaint(Color.WHITE);
            plot.setRangeGridlinePaint(Color.GRAY);
            plot.setDomainGridlinePaint(Color.GRAY);
            return chart;
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

            }
            XYSeriesCollection dataset = new XYSeriesCollection(series1);
            JFreeChart chart = ChartFactory.createXYLineChart("Soil Pressure", "Depth (m)", "Soil Pressure (kPa)", dataset, PlotOrientation.HORIZONTAL, true, true, false);
            XYPlot plot = (XYPlot) chart.getPlot();
            plot.setAxisOffset(new RectangleInsets(2.0, 2.0, 2.0, 2.0));
            XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
            renderer.setShapesVisible(true);
            plot.setBackgroundPaint(Color.WHITE);
            plot.setRangeGridlinePaint(Color.GRAY);
            plot.setDomainGridlinePaint(Color.GRAY);
            return chart;
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

            }
            XYSeriesCollection dataset = new XYSeriesCollection(series1);
            JFreeChart chart = ChartFactory.createXYLineChart("ABS Limit Pressure", "Depth (m)", "ABS Limit Pressure (kPa)", dataset, PlotOrientation.HORIZONTAL, true, true, false);
            XYPlot plot = (XYPlot) chart.getPlot();
            plot.setAxisOffset(new RectangleInsets(2.0, 2.0, 2.0, 2.0));
            XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
            renderer.setShapesVisible(true);
            plot.setBackgroundPaint(Color.WHITE);
            plot.setRangeGridlinePaint(Color.GRAY);
            plot.setDomainGridlinePaint(Color.GRAY);
            return chart;
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

            }
            XYSeriesCollection dataset = new XYSeriesCollection(series1);
            JFreeChart chart = ChartFactory.createXYLineChart("Rotation", "Depth (m)", "Rotation (rad)", dataset, PlotOrientation.HORIZONTAL, true, true, false);
            XYPlot plot = (XYPlot) chart.getPlot();
            plot.setAxisOffset(new RectangleInsets(2.0, 2.0, 2.0, 2.0));
            XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
            renderer.setShapesVisible(true);
            plot.setBackgroundPaint(Color.WHITE);
            plot.setRangeGridlinePaint(Color.GRAY);
            plot.setDomainGridlinePaint(Color.GRAY);
            return chart;
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

            }
            XYSeriesCollection dataset = new XYSeriesCollection(series1);
            JFreeChart chart = ChartFactory.createXYLineChart("Bending Moment", "Depth (m)", "Bending Moment (kNm)", dataset, PlotOrientation.HORIZONTAL, true, true, false);
            XYPlot plot = (XYPlot) chart.getPlot();
            plot.setAxisOffset(new RectangleInsets(2.0, 2.0, 2.0, 2.0));
            XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
            renderer.setShapesVisible(true);
            plot.setBackgroundPaint(Color.WHITE);
            plot.setRangeGridlinePaint(Color.GRAY);
            plot.setDomainGridlinePaint(Color.GRAY);
            return chart;
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

            }
            XYSeriesCollection dataset = new XYSeriesCollection(series1);
            JFreeChart chart = ChartFactory.createXYLineChart("Shear Force", "Depth (m)", "Shear Force (kN)", dataset, PlotOrientation.HORIZONTAL, true, true, false);
            XYPlot plot = (XYPlot) chart.getPlot();
            plot.setAxisOffset(new RectangleInsets(2.0, 2.0, 2.0, 2.0));
            XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
            renderer.setShapesVisible(true);
            plot.setBackgroundPaint(Color.WHITE);
            plot.setRangeGridlinePaint(Color.GRAY);
            plot.setDomainGridlinePaint(Color.GRAY);
            return chart;
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

     * @param scatterPlot Scatter plot to modify
     * @param enabled Indicates if lines have to be shown
     */
    public static void setScatterPlotLinesEnabled(final JFreeChart scatterPlot, final boolean enabled) {
        XYPlot plot = (XYPlot) scatterPlot.getPlot();
        XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();
        if (enabled) {
            renderer.setSeriesLinesVisible(0, true);
            renderer.setSeriesShapesVisible(0, false);
        } else {
            renderer.setSeriesLinesVisible(0, false);
            renderer.setSeriesShapesVisible(0, true);
            renderer.setSeriesShape(0, new java.awt.geom.Ellipse2D.Double(0, 0, 1, 1));
        }
        renderer.setSeriesPaint(0, Color.RED);

        plot.setRenderer(0, renderer);
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

    public static final boolean LINES = true;
    public static final boolean NO_LINES = false;
    public static final boolean SHAPES = true;
    public static final boolean NO_SHAPES = false;
    protected XYItemRenderer createXYLineAndShapeRenderer(boolean lines, boolean shapes) {
        XYItemRenderer renderer = new XYLineAndShapeRenderer(lines, shapes);
        renderer.setLegendItemLabelGenerator(new SeriesNameGenerator());
        renderer.setBaseToolTipGenerator(getTooltipGenerator());
        return renderer;
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

            String yAxisLabel,
            String[] seriesNames,
            Double[][] seriesInt) {
        XYSeries[] series = new XYSeries[seriesInt.length];
        XYSeriesCollection dataset = new XYSeriesCollection();
        XYItemRenderer renderer = new XYLineAndShapeRenderer(true, false);
        renderer.setSeriesPaint(1, Color.black);
        renderer.setSeriesStroke(1, new BasicStroke(0.75f));
        renderer.setSeriesPaint(0, Color.red);
        renderer.setSeriesStroke(0, new BasicStroke(1.5f));

        for (int i = 0; i < seriesInt.length; i++) {
            series[i] = new XYSeries(seriesNames[i]);
           
            for (int j = 0; j < seriesInt[i].length; j++) {
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.