Package org.jfree.chart.drawable

Examples of org.jfree.chart.drawable.BorderPainter


        this.parent = null;
        this.insets = DEFAULT_INSETS;
        this.backgroundPainter = new ColorPainter(Color.WHITE);
        this.backgroundAlpha = DEFAULT_BACKGROUND_ALPHA;
        this.backgroundImage = null;
        this.borderPainter = new BorderPainter(Color.GRAY,
                DEFAULT_OUTLINE_STROKE);
        this.foregroundAlpha = DEFAULT_FOREGROUND_ALPHA;

        this.noDataMessage = null;
        this.noDataMessageFont = new Font("SansSerif", Font.PLAIN, 12);
View Full Code Here


        theme.subtitlePaint = Color.WHITE;
        theme.legendBackgroundPaint = Color.BLACK;
        theme.legendItemPaint = Color.WHITE;
        theme.chartBackgroundPainter = new ColorPainter(Color.BLACK);
        theme.plotBackgroundPainter = new ColorPainter(Color.BLACK);
        theme.plotBorderPainter = new BorderPainter(Color.YELLOW, new BasicStroke(1.0f));
        theme.axisLabelPaint = Color.WHITE;
        theme.shadowPaint = Color.DARK_GRAY;
        theme.itemLabelPaint = Color.WHITE;
        theme.drawingSupplier = new DefaultDrawingSupplier(
                new Paint[] {Color.decode("0xFFFF00"),
View Full Code Here

     * @param plot  The plot.
     */
    public void updatePlotProperties(Plot plot) {

        // set the plot properties...
        plot.setBorderPainter(new BorderPainter((Color) getOutlinePaint(),
                getOutlineStroke()));
        plot.setBackgroundColor((Color) getBackgroundPaint());
        plot.setInsets(getPlotInsets());

        // then the axis properties...
View Full Code Here

                RenderingHints.VALUE_TEXT_ANTIALIAS_ON));
        assertEquals(chart1, chart2);


        // borderPainter
        chart1.setBorderPainter(new BorderPainter(Color.RED,
                new BasicStroke(1.0f)));
        assertFalse(chart1.equals(chart2));
        chart2.setBorderPainter(new BorderPainter(Color.RED,
                new BasicStroke(1.0f)));
        assertEquals(chart1, chart2);

        // padding
        chart1.setPadding(new RectangleInsets(1, 2, 3, 4));
View Full Code Here

        assertFalse(t1.equals(t2));
        t2.setPlotBackgroundPainter(new ColorPainter(Color.RED));
        assertEquals(t1, t2);

        //plotOutlinePaint;
        t1.setPlotBorderPainter(new BorderPainter(Color.RED,
                new BasicStroke(1.0f)));
        assertFalse(t1.equals(t2));
        t2.setPlotBorderPainter(new BorderPainter(Color.RED,
                new BasicStroke(1.0f)));
        assertEquals(t1, t2);

        //labelLinkStyle;
        t1.setLabelLinkStyle(PieLabelLinkStyle.STANDARD);
View Full Code Here

        plot1.setInsets(new RectangleInsets(1.0, 2.0, 3.0, 4.0));
        assertFalse(plot1.equals(plot2));
        plot2.setInsets(new RectangleInsets(1.0, 2.0, 3.0, 4.0));
        assertEquals(plot1, plot2);

        plot1.setBorderPainter(new BorderPainter(Color.RED, new BasicStroke(1.0f)));
        assertFalse(plot1.equals(plot2));
        plot2.setBorderPainter(new BorderPainter(Color.RED, new BasicStroke(1.0f)));
        assertEquals(plot1, plot2);

        // backgroundPainter
        plot1.setBackgroundPainter(new ColorPainter(Color.RED));
        assertFalse(plot1.equals(plot2));
View Full Code Here

TOP

Related Classes of org.jfree.chart.drawable.BorderPainter

Copyright © 2018 www.massapicom. 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.