Package diva.graph.toolbox

Examples of diva.graph.toolbox.TypedNodeRenderer


                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);
        typedRenderer.addTypedRenderer(Integer.class, integerRenderer);
        typedRenderer.addTypedRenderer(ArrayList.class, setRenderer);
        typedRenderer.addTypedRenderer(String.class, stringRenderer);

        // Use the renderer in the JGraph
        GraphPane gp = new GraphPane(bgc, new BasicGraphModel());
        bgc.getNodeController().setNodeRenderer(typedRenderer); // <=== HERE!
View Full Code Here

TOP

Related Classes of diva.graph.toolbox.TypedNodeRenderer

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.