protected Box newDefaultBox(Object vertex) { Window w = new Window(); Color c = Color.newRandomHSB(0.5, 0.5); w.add(new TextRect(vertex.toString(), c).scale(0.9).move(0, 0, 0.1)); return w; }
@Override public Box newVertexBox(Object vertex) { Window w = new Window(); Color c = Color.newRandomHSB(0.5, 0.5); w.add(new TextRect(vertex.toString(), c).scale(0.9).move(0, 0, 0.1)); w.scale(scale); return w; }
@Override public Space newEdgeSpace(Object edge, Box pa, Box pb) { Line3D fl = new Line3D(pa.getPosition(), pb.getPosition(), new DoubleVar(0.02), 2); fl.color(Color.newRandomHSB(0.5, 0.5)); return fl; }