Questions tagged [jgraph]

JGraph is graph visualization library

JGraph is graph visualization library. An open source Java library offering professional support is available.

134 questions
0
votes
1 answer

JGraph has unresolved AttributeMap on precompilation

I am writing a first VERY simple class to see if my install can build something. So this is what I have import org.jgrapht.ListenableGraph; import org.jgrapht.ext.JGraphModelAdapter; import org.jgrapht.graph.DefaultEdge; import…
jiveturkey
  • 2,484
  • 1
  • 23
  • 41
0
votes
1 answer

JGraphX Drop a Vertex in another Vertex

I try to create a GraphicEditor. I use a JTree and Drag & Drop to create Vertexes on a graphcomponent, but I don't know how to drop a created Vertex into another Vertex. How can I specify a Vertex as a Droptarget? Thanks very much for you…
0
votes
1 answer

Constraints on where edges connect to a vertex (JGraphX)

I noticed that when connecting multiple edges to a single (rectangle-shaped) vertex, the positions where they connect are evenly distributed across the side of the vertex. Is there a way to change this behavior? I'm using mxHierarchicalLayout. In my…
Maximilian Csuk
  • 584
  • 1
  • 6
  • 21
0
votes
1 answer

Isn't there an "auto disposition" method?

I have a graph with nodes and edges and I want to display them. Isn't there any function which, given this graph, displays it without me to give exact coordinates?
Phate
  • 6,066
  • 15
  • 73
  • 138
0
votes
1 answer

How to generate clear graph with jgrapht with very big number of vertices that don't overlap each other

I am working on generating a graph with Java using jgraph and jgrapht libraries. The problem is that my graph has a very big number of vertices (varying from 300 to 1000 in some cases) and no matter what I try, vertices and edges keep on overlapping…
0
votes
1 answer

Java jframe jgraph scroll plane

I can't figure out how to put scroll bar for my jrame or should I try to put inside of the jgraph? I tried different things but it either doesn't compile or doesn't show up or it covers the graph? main java final GraphMain applet=new…
MAXGEN
  • 735
  • 1
  • 10
  • 21
0
votes
1 answer

Java jgraph applet cmd jar won't display

Not sure why my applet isn't showing. It shows in eclipse but when I compile a jar and run it from windows cmd, it doesn't display. The outputs System.out.println do work throughout the code and come out on the command line. What am I doing wrong,…
MAXGEN
  • 735
  • 1
  • 10
  • 21
0
votes
1 answer

Java jgraph applet visualize bipartite graph

I having problem getting jgrapht or jgraph or applet to visualize this graph correctly? Can I use this graph library to visualize similarly to the picture beneath? U would be x and V would be Y in the code for example. I'm using the demo versions…
MAXGEN
  • 735
  • 1
  • 10
  • 21
0
votes
1 answer

JGraph Enter/Exit/Home Listener

I've been using the JGraph library and I can't seem to find out what event fires when the root node of the view changes. For example when you enter a group A, A is now the root of the view and when you perform the home action the view root is the…
Lucas
  • 2,514
  • 4
  • 27
  • 37
0
votes
2 answers

Java Recursive function fails

My function is: private void addEdges(mxICell mainObject, List edgesList) { if (mainObject.getEdgeCount() > 0) { // for (int i = 0; i < mainObject.getEdgeCount(); i++) { …
Houssam Badri
  • 2,441
  • 3
  • 29
  • 60
0
votes
1 answer

Updating the edge weight displayed without being "cluncky"

I am using Jgrapht to build a simulation environment based on a directed weighted graph. I now want to display the simulation using Jgraph. While I have figured out how to display the graph and update it as the simulation runs, I have noticed that…
Destruktor
  • 463
  • 1
  • 4
  • 19
0
votes
1 answer

JMenu Item to export jgraph as image

I have a jframe with a jgraph init, and I have added a jmenu bar. I am trying this code to add a jmenu item, so that when it is clicked it will export the jgraph as image in the selected location. I get the following errors: Exception in thread…
user2598911
  • 379
  • 2
  • 6
  • 22
0
votes
1 answer

How to create a legend in mxgraph?

I have a graph created using mxgraph javascript library. The graph has 3 types of cells. Every cell belong to one of the 3 types and each type has a particular color. So, I want to create a legend in the corner that shows what each color cell type…
Deepak Garg
  • 366
  • 3
  • 12
0
votes
1 answer

Trying to create a custom layout

Can anyone tell me how to do this custom layout in java? Tried adding the menubar in a north jpanel gridlayout and the button+graph in middle jpanel gridlayout, then added them to frame which has borderlayout, but none shows up. Thanks in…
user2598911
  • 379
  • 2
  • 6
  • 22
0
votes
1 answer

From a string array to a diagram of blocks

I have made a program which takes the results of some SPARQL queries through Jena and saves them in a 2-dimensional string (i.e., 2-dimensional array of Strings). I want to take the values of the first column only and design a diagram of blocks…
user2598911
  • 379
  • 2
  • 6
  • 22
1 2 3
8
9