java Programming Glossary: vv
JUNG: placing tree nodes in order http://stackoverflow.com/questions/10215718/jung-placing-tree-nodes-in-order Node Edge graphTree 100 100 VisualizationViewer Node Edge vv new VisualizationViewer Node Edge treeLayout vv.setDoubleBuffered.. Node Edge vv new VisualizationViewer Node Edge treeLayout vv.setDoubleBuffered true vv.setBackground Color.WHITE vv.getRenderContext.. Node Edge treeLayout vv.setDoubleBuffered true vv.setBackground Color.WHITE vv.getRenderContext .setEdgeLabelTransformer..
Vertex label in JUNG graph visualization http://stackoverflow.com/questions/3288886/vertex-label-in-jung-graph-visualization Dimension 800 800 BasicVisualizationServer Vertex SEdge vv new BasicVisualizationServer Vertex SEdge layout vv.setPreferredSize.. SEdge vv new BasicVisualizationServer Vertex SEdge layout vv.setPreferredSize new Dimension 850 850 Sets the viewing area.. JFrame.EXIT_ON_CLOSE frame.getContentPane .add vv frame.pack frame.setVisible true How can I add labels for vertices..
Exporting JUNG graphs to hi-res images (preferably vector based) http://stackoverflow.com/questions/8518390/exporting-jung-graphs-to-hi-res-images-preferably-vector-based MouseEvent e final VisualizationViewer MyNode MyEdge vv VisualizationViewer MyNode MyEdge e.getSource Point2D p e.getPoint.. e.getPoint GraphElementAccessor MyNode MyEdge pickSupport vv.getPickSupport if pickSupport null final MyNode v pickSupport.getVertex.. if pickSupport null final MyNode v pickSupport.getVertex vv.getGraphLayout p.getX p.getY if clicked on a vertex show info..
How to manually set the zoom on a Jung visualisation? http://stackoverflow.com/questions/9761391/how-to-manually-set-the-zoom-on-a-jung-visualisation to graph treeLayout new TreeLayout String Integer graph vv new VisualizationViewer String Integer treeLayout new Dimension.. String Integer treeLayout new Dimension 500 500 vv.setBackground Color.white vv.getRenderContext .setEdgeShapeTransformer.. new Dimension 500 500 vv.setBackground Color.white vv.getRenderContext .setEdgeShapeTransformer new EdgeShape.Line..
|