Package diva.graph.basic

Examples of diva.graph.basic.BasicNodeRenderer


    private NodeRendererTutorial(AppContext context) {
        final BasicGraphController bgc = new BasicGraphController();

        // Build the renderers
        NodeRenderer defaultRenderer = new BasicNodeRenderer(bgc,
                new Ellipse2D.Double(0.0, 0.0, 40.0, 40.0),
                new Ellipse2D.Double(0.0, 0.0, 600.0, 600.0), Color.gray,
                Color.gray, .3);
        NodeRenderer stringRenderer = new BasicNodeRenderer(bgc,
                new Ellipse2D.Double(0.0, 0.0, 40.0, 40.0),
                new Ellipse2D.Double(0.0, 0.0, 600.0, 600.0), Color.blue,
                Color.blue, .3);
        NodeRenderer integerRenderer = new BasicNodeRenderer(bgc,
                new Rectangle2D.Double(0.0, 0.0, 40.0, 40.0),
                new Rectangle2D.Double(0.0, 0.0, 600.0, 600.0), Color.orange,
                Color.orange, .3);
        NodeRenderer setRenderer = new BasicNodeRenderer(bgc,
                new Ellipse2D.Double(0.0, 0.0, 40.0, 40.0),
                new Ellipse2D.Double(0.0, 0.0, 600.0, 600.0), Color.red,
                Color.red, .3);
        TypedNodeRenderer typedRenderer = new TypedNodeRenderer(bgc,
                defaultRenderer);
View Full Code Here

TOP

Related Classes of diva.graph.basic.BasicNodeRenderer

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.