Examples of NBodyForce

@author jeffrey heer

Examples of prefuse.util.force.NBodyForce

        m_edgeGroup = PrefuseLib.getGroupName(group, Graph.EDGES);
       
        m_enforceBounds = enforceBounds;
        m_runonce = runonce;
        m_fsim = new ForceSimulator();
        m_fsim.addForce(new NBodyForce());
        m_fsim.addForce(new SpringForce());
        m_fsim.addForce(new DragForce());
    }
View Full Code Here

Examples of prefuse.util.force.NBodyForce

       
        public DataMountainForceLayout(boolean enforceBounds) {
            super("data",enforceBounds,false);
           
            ForceSimulator fsim = new ForceSimulator();
            fsim.addForce(new NBodyForce(-0.4f, 25f, NBodyForce.DEFAULT_THETA));
            fsim.addForce(new SpringForce(1e-5f,0f));
            fsim.addForce(new DragForce());
            setForceSimulator(fsim);
           
            m_nodeGroup = "data";
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.