Package diva.graph.toolbox

Examples of diva.graph.toolbox.StateBubble


    /**
     * Return the rendered visual representation of this node.
     */
    public Figure render(Object n) {
        StateBubble e = new StateBubble(0, 0, _size, _size);
        e.setFillPaint(_fillPaint);
        e.setStrokePaint(_strokePaint);

        // Set the state appearance
        //Object s = n.getProperty("stateType");
        int type = StateBubble.NORMAL_STATE;

        //if (s != null) {
        //    type = ((Integer) s).intValue();
        //}
        e.setStateType(type);

        // Set the label
        Object p = "node"; //n.getProperty("label");
        String label = (p == null) ? "Unnamed" : (String) p;
        LabelWrapper w = new LabelWrapper(e, label);
View Full Code Here

TOP

Related Classes of diva.graph.toolbox.StateBubble

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.