Examples of lookupSeriesPaint()


Examples of org.jfree.chart.renderer.category.BarRenderer.lookupSeriesPaint()

        BarRenderer r = new BarRenderer();
        assertEquals(Color.blue, r.getBasePaint());

        // first check that autoPopulate==false works as expected
        r.setAutoPopulateSeriesPaint(false);
        assertEquals(Color.blue, r.lookupSeriesPaint(0));
        assertNull(r.getSeriesPaint(0));

        // now check autoPopulate==true
        r.setAutoPopulateSeriesPaint(true);
        /*CategoryPlot plot =*/ new CategoryPlot(null, new CategoryAxis(
View Full Code Here

Examples of org.jfree.chart.renderer.category.BarRenderer.lookupSeriesPaint()

        // now check autoPopulate==true
        r.setAutoPopulateSeriesPaint(true);
        /*CategoryPlot plot =*/ new CategoryPlot(null, new CategoryAxis(
                "Category"), new NumberAxis("Value"), r);
        assertEquals(DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE[0],
                r.lookupSeriesPaint(0));
        assertNotNull(r.getSeriesPaint(0));
    }

    /**
     * Some checks for the fill paint lookup mechanism.
View Full Code Here

Examples of org.jfree.chart.renderer.category.BarRenderer.lookupSeriesPaint()

        BarRenderer r = new BarRenderer();
        assertEquals(Color.blue, r.getBasePaint());

        // first check that autoPopulate==false works as expected
        r.setAutoPopulateSeriesPaint(false);
        assertEquals(Color.blue, r.lookupSeriesPaint(0));
        assertNull(r.getSeriesPaint(0));

        // now check autoPopulate==true
        r.setAutoPopulateSeriesPaint(true);
        /*CategoryPlot plot =*/ new CategoryPlot(null, new CategoryAxis(
View Full Code Here

Examples of org.jfree.chart.renderer.category.BarRenderer.lookupSeriesPaint()

        // now check autoPopulate==true
        r.setAutoPopulateSeriesPaint(true);
        /*CategoryPlot plot =*/ new CategoryPlot(null, new CategoryAxis(
                "Category"), new NumberAxis("Value"), r);
        assertEquals(DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE[0],
                r.lookupSeriesPaint(0));
        assertNotNull(r.getSeriesPaint(0));
    }

    /**
     * Some checks for the fill paint lookup mechanism.
View Full Code Here

Examples of org.jfree.chart.renderer.category.BarRenderer.lookupSeriesPaint()

        BarRenderer r = new BarRenderer();
        assertEquals(Color.blue, r.getBasePaint());
       
        // first check that autoPopulate==false works as expected
        r.setAutoPopulateSeriesPaint(false);
        assertEquals(Color.blue, r.lookupSeriesPaint(0));
        assertNull(r.getSeriesPaint(0));
       
        // now check autoPopulate==true
        r.setAutoPopulateSeriesPaint(true);
        /*CategoryPlot plot =*/ new CategoryPlot(null, new CategoryAxis(
View Full Code Here

Examples of org.jfree.chart.renderer.category.BarRenderer.lookupSeriesPaint()

        // now check autoPopulate==true
        r.setAutoPopulateSeriesPaint(true);
        /*CategoryPlot plot =*/ new CategoryPlot(null, new CategoryAxis(
                "Category"), new NumberAxis("Value"), r);
        assertEquals(DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE[0],
                r.lookupSeriesPaint(0));
        assertNotNull(r.getSeriesPaint(0));
    }

    /**
     * Some checks for the fill paint lookup mechanism.
View Full Code Here

Examples of org.jfree.chart.renderer.category.BarRenderer.lookupSeriesPaint()

        BarRenderer r = new BarRenderer();
        assertEquals(Color.BLUE, r.getDefaultPaint());

        // first check that autoPopulate==false works as expected
        r.setAutoPopulateSeriesPaint(false);
        assertEquals(Color.BLUE, r.lookupSeriesPaint(0));
        assertNull(r.getSeriesPaint(0));

        // now check autoPopulate==true
        r.setAutoPopulateSeriesPaint(true);
        CategoryPlot plot = new CategoryPlot(null, new CategoryAxis(
View Full Code Here

Examples of org.jfree.chart.renderer.category.BarRenderer.lookupSeriesPaint()

        // now check autoPopulate==true
        r.setAutoPopulateSeriesPaint(true);
        CategoryPlot plot = new CategoryPlot(null, new CategoryAxis(
                "Category"), new NumberAxis("Value"), r);
       
        assertEquals(Colors.getDefaultColors()[0], r.lookupSeriesPaint(0));
        assertNotNull(r.getSeriesPaint(0));
    }

    /**
     * Some checks for the fill paint lookup mechanism.
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYBarRenderer.lookupSeriesPaint()

        // retrieve the colors used for each chart bar, and register those
        // colors with the schedule rows so they can act as a legend
        for (int i = scheduleRows.size(); i-- > 0;) {
            ScheduleTableRow oneRow = scheduleRows.get(i);
            oneRow.addColoredIcon(renderer.lookupSeriesPaint(i));
        }
    }

    private void addButtons(JDialog dialog, JPanel panel, int gridY) {
        Box buttonBox = BoxUtils.hbox( //
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYErrorRenderer.lookupSeriesPaint()

        int actualIndex = xyDataset.indexOf(targetName);
        actualSeries = xyDataset.getSeries(actualIndex);

        if (actualSeries != null && predSeries != null) {
          // match the color of the actual series
          java.awt.Paint actualPaint = renderer.lookupSeriesPaint(actualIndex);
          renderer.setSeriesPaint(predIndex, actualPaint);

          // now set the line style to dashed
          BasicStroke dashed = new BasicStroke(1.5f, BasicStroke.CAP_BUTT,
              BasicStroke.JOIN_MITER, 10.0f, new float[] { 5.0f }, 0.0f);
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.