Ejemplo n.º 1
0
 /**
  * render the nodes in net
  *
  * @param gl
  * @param nr
  * @param text
  */
 public void renderNodes3D(GL gl, GraphRenderer nr, int text) {
   applyPickColors();
   for (Node n : net.nNodes) {
     nr.renderNode(gl, n);
     nr.renderNodeLabels(gl, n, text, false);
   }
 }
Ejemplo n.º 2
0
 /**
  * render node labels with font = text
  *
  * @param gl
  * @param nr
  * @param text
  */
 void renderLabels(GL gl, GraphRenderer nr, int text) {
   //		boolean fast = (net.nNodes.size()>edgeTresh);
   boolean fast = false;
   for (Edge eref : net.nEdges) nr.renderEdgeLabels(gl, eref, text, fast);
   for (Node nref : net.nNodes) nr.renderNodeLabels(gl, nref, text, fast);
 }