JGraphX is an open source Java Swing Component. It is the architecture written after JGraph 5, but not named JGraph 6 because it is rewritten and the API is entirely different.
Questions tagged [jgraphx]
182 questions
0
votes
1 answer
How to put non-editable elements in JPGraph
Im working on a code that shows a full graph and uses Dijkstra’s algoritm
to show the shortest path. But the problem is: it doesnt simply visaluizate things, they're all editable and interactible.
I just need to visualize "the graph" and no to:…

Mamey
- 81
- 1
- 10
0
votes
1 answer
JGraphX is ruining the bounds of Swing-components
I am trying to implement an interaction between some self-written GUI-Elements (like Java-swing Buttons) and JGraphX. In order to do that, I first just want to display a Button next to a JGraph-Element - and I'm stuck.
My code to display the Button…

Jere
- 1,196
- 1
- 9
- 31
0
votes
1 answer
Dropping vertex on a vertex, creating an edge between them
I'm trying to figure out how to implement the above functionality? i.e. If I have a vertex already in my graph, and I drag another vertex from my palette (I've derived my app from the Java BasicGraphEditor example), I'd like to automatically create…

Rogan Dawes
- 350
- 2
- 9
0
votes
0 answers
How to relocation tree node to avoid Collision in GUI
I have defined a class called LogicalNode,which can be used to form a tree.I want to display the whole tree,but i don't know how to set the location for each node.In the program, I can insert a tree node under his father node, so when i insert some…

lution
- 81
- 12
0
votes
1 answer
How do I create a large BufferedImage from JGraphX (mxGraph) method?
I am using JGraphX to diagram workflows of varying size. I am encountering a problem that once I hit a certain number of cells, the mxCellRenderer method createBufferedImage() fails with an OutOfMemoryError. JGraphX renders the diagram properly in…
0
votes
1 answer
How to show graph on JFrame
I have a JPanel to create a graph which cannot be editable.
When the graph shows, the edge name is covered by boundary of JFrame.
How can I show that edge name without being covered by JFrame?
My Example
This is my code:
package myapp;
import…

Miami
- 1
- 1
0
votes
1 answer
Export a JGraphX graph with custom vertex components to an image
I have a graph which overrides createComponents in mxGraphComponent to render every vertex as a JTable. While I expected that mxCellRenderer.create*Document couldn't handle it, I hoped that saving to an image with
BufferedImage image =…

Alexey Romanov
- 167,066
- 35
- 309
- 487
0
votes
1 answer
JGraphX getCell(id) doesn't find anything
I experience some issues with JGraphX and mxGraphModel.
I convert a petri network described by a Hashmap> into a graph model. In order so I built the following loop. However it seems that when iterating over the childs of a node, it can find the…

Vanpourix
- 185
- 7
0
votes
1 answer
Cannot import external JAVA library using Jython in Eclipse
I'm new to Jython and to Eclipse. I'm trying to use the JGraphX JAVA library. I've created a new PyDev project and package. I've right-clicked on the project properties in Eclipse, selected "PyDev - PYTHONPATH" and added jgraphx.jar. In the init.py…

D. Vyd
- 15
- 4
0
votes
1 answer
JGrapht: Hamiltonian Cycle Program returns getEdgeWeightException
I've been working on this piece of code where i'll need to create a dynamic complete graph and try to find the shortest path from the start vertex to the end by visiting each vertex once. After some research I've found the code for the Hamiltonian…

Achraff-Nour MESKI
- 19
- 1
- 5
0
votes
1 answer
Is it possible to create child/split edges using JGraphx
In HelloWorld example of JGraphx, if we insert two edges between the vertices, the edges are overlapped. Is there a way to make them split, like shown in this image:

Nandha
- 752
- 1
- 12
- 37
0
votes
1 answer
jgraphx change vertex size
I draw a simple graph (using Java swing interface).
The graph is OK, but the default / automatic vertices size is small for my purpose. How to set the vertex size (rectangle or ellipse)?
I can change some graph behavior using put() ( like…

Fabrizio R.
- 117
- 1
- 14
0
votes
0 answers
jGraphx - edges overlapping vertices and other edges after moving vertex
After I do the layout in my jgraphx based application the graph looks nice without having edges and vertices overlapped.
Graph after the layout
However, when I move the vertex to new position, the edge start to overlap other vertices and…

Ivko
- 1
- 2
0
votes
1 answer
How to remove folding in mxCell?
I am using jgraphX, I want to remove folding in particular cell in graph.
There is a method to remove folding from all the cells.(isCellFoldable- return false)
But I don't want that unique method.
Can I add the folding operation to the popup menu?

lekshmi
- 191
- 1
- 1
- 6
0
votes
0 answers
How to make JGraphX not duplicate nodes
Below is a simple example of the problem I am having. In my real data, I have many "links" coming from a data store that have the simple format of
entityA_ID, entityB_ID, Link_type
such as
a,b,"link"
a,c,"link"
b,d,"link"
so, the entityA_ID or…

Mark Giaconia
- 3,844
- 5
- 20
- 42