-
Hii,
My graph is always positoned at the bottom of my JPanel. This JPanel is added to the center of a Border Layout.
I want my graph to be in the enter of the visualization viewer.
I tried using vv.scaleToLayout(new CrossoverScalingControl());
but it doesnt work.
I am initially using DAG layout, finding the vertex coordinates and then giving them to static layout.
How can I get...
2009-07-10 08:13:05 UTC in Java Universal Network/Graph Framework
-
public class LocalListener extends MyGraphMouseListener implements ActionListener
{
static DrawGraph dg=new DrawGraph();
JFrame prevFrame;
JPopupMenu popup;
public static JMenuItem j;
JMenuItem statements,gen,kill,in,out;
@Override
public void graphClicked(BasicBlock b,MouseEvent me)
{...
2009-07-08 18:51:58 UTC in Java Universal Network/Graph Framework
-
Hello all,
I am facing a very strange problem.
I am displaying a popup menu by right click on each vertex. The menu has 5 options. The label of that vertex changes as per the menu option selected.
The problem is--after clicking on a vertex and selecting an option(assume option 'A'), if I right click on any other vertex to display the menu, then label for
option 'A' is displayed for the...
2009-07-08 18:50:52 UTC in Java Universal Network/Graph Framework
-
OK thanks a lot :)
2009-07-07 03:22:50 UTC in Java Universal Network/Graph Framework
-
Hii,
I have to display a long string on each vertex. So I want to display it on multiple lines.
I have tried using "\n" as well as
String newline = System.getProperty("line.separator");
But the string still displays in a single line on each vertex.
How do I make it appear on multiple lines.
Thanks.
2009-07-06 13:22:59 UTC in Java Universal Network/Graph Framework
-
Hey Tom,
Thank you so much for the reply.
That really helped :-)
Thanks.
2009-06-27 14:44:17 UTC in Java Universal Network/Graph Framework
-
Hi,
Sorry but DAG layout wont work in my case coz my graph may have cyclic paths.
I need a layout which will display the graph from top to bottom(i.e root at the top). I have tried all the layouts in JUNG but none of them displays the graphs in this way.
Any suggestions? Please help.
Thanks.
2009-06-25 09:42:02 UTC in Java Universal Network/Graph Framework
-
Hello All,
I am working on a project in which I have to display Data Flow Analysis graphs.
I need to use DAG layout. But in DAG Layout, the leaf nodes come at the top and the root at the bottom.
I need the root at the top and the leaves at the bottom. How do i do it?
Is there some other layout that I can use?
Please do reply, I am stuck at this point.
Thanks.
2009-06-24 05:08:21 UTC in Java Universal Network/Graph Framework
-
When I click on a vertex,I want the color of that vertex to change.
I have made a class which implements GraphMouseListener.
What should I write in the graphClicked method in order to change the vertex color and keep the remaining graph unchanged?.
2009-06-09 10:31:07 UTC in Java Universal Network/Graph Framework