Package org.geppetto.core.model.runtime

Examples of org.geppetto.core.model.runtime.VisualGroupNode


    hhcell.getAspects().add(electrical);
    purkinje.getAspects().add(electrical2);
    electrical.setParent(hhcell);
    electrical2.setParent(purkinje);
   
    VisualGroupNode group = new VisualGroupNode("group");
    group.setName("Group 1");
    group.setHighSpectrumColor("red");
    group.setLowSpectrumColor("yellow");
    group.setType("group");
   
    VisualGroupElementNode soma = new VisualGroupElementNode("soma");
    soma.setDefaultColor("orange");
    PhysicalQuantity quantity = new PhysicalQuantity();
    quantity.setScalingFactor("ms");
    quantity.setValue(new DoubleValue(12));
    soma.setParameter(quantity);
   
    VisualGroupElementNode synapse = new VisualGroupElementNode("synapse");
    synapse.setDefaultColor("orange");
    PhysicalQuantity quantity2 = new PhysicalQuantity();
    quantity2.setScalingFactor("ms");
    quantity2.setValue(new DoubleValue(12));
    synapse.setParameter(quantity2);
   
    group.getVisualGroupElements().add(soma);
    group.getVisualGroupElements().add(synapse);
   
    visualization.addChild(group);
   
    SerializeTreeVisitor visitor = new SerializeTreeVisitor();
    runtime.apply(visitor);
View Full Code Here

TOP

Related Classes of org.geppetto.core.model.runtime.VisualGroupNode

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.