Examples of BorderPainter


Examples of com.alee.extended.painter.BorderPainter

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        // Simple BorderPainter
        final WebLabel l1 = new WebLabel ( "Simple border painter" );
        l1.setPainter ( new WebLabelPainter ( new BorderPainter () ) ).setMargin ( 10 );

        // Customized BorderPainter
        final WebLabel l2 = new WebLabel ( "Customized border painter" );
        final BorderPainter bp2 = new BorderPainter ();
        bp2.setRound ( 12 );
        bp2.setWidth ( 2 );
        bp2.setColor ( new Color ( 39, 95, 173 ) );
        l2.setPainter ( new WebLabelPainter ( bp2 ) ).setMargin ( 10 );

        // Simple DashedBorderPainter
        final WebLabel l3 = new WebLabel ( "Dashed border painter" );
        l3.setPainter ( new WebLabelPainter ( new DashedBorderPainter () ) ).setMargin ( 10 );
View Full Code Here

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

Examples of org.jfree.chart.drawable.BorderPainter

        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

Examples of org.jfree.chart.drawable.BorderPainter

     * @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

Examples of org.jfree.chart.drawable.BorderPainter

                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

Examples of org.jfree.chart.drawable.BorderPainter

        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

Examples of org.jfree.chart.drawable.BorderPainter

        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
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.