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
2
votes
1 answer
determine if two vertices are connected jGraphX
Is there a method to determine if two vertices are connected in JgraphX? The method isConnectable() only returns true if the vertex is connected.

J.X
- 23
- 3
2
votes
1 answer
XML to graph by JGraphX API
I need to parse XML to a graph in JGraphX using Java. I get this XML from the JGraphX library and need to again set a graph by this XML. Is there any JGraphX library method that converts XML to a graph? I have this this below code to get XML from a…

Avdhesh Yadav
- 33
- 7
2
votes
2 answers
mxGraph get vertex by id
I'm doing the vertex insertion as follows:
String id = "1";
String value = "One";
Object v = graph.insertVertex(parent, id, value, 30, 30, 0, 0);
So I need to get this vertex by id...
Object[] cells =…

JulianoMartins
- 543
- 1
- 8
- 19
2
votes
1 answer
Integrating mxgraph inside JavaFX's fxml file
I need to make a desktop application that generates a graph on a JavaFX FXML file. I am using mxGraph libary in eclipse to build the graph and Scene Builder to edit the FXML file, but i can't make the graph to show inside the FXML file, it only…

Aimée
- 49
- 6
2
votes
2 answers
Writing a large graphics 2d document to multiple pdf
Is there a way i can split up a large jgraph graphics 2d document into multiple pages in a pdf using itext.
I have a large flowchart created using jgraph. I need to write this flowchart into a pdf wit multiple pages. I need to make sure that each…

shoukatghouse
- 49
- 7
2
votes
0 answers
How to enable "Fit to Page" functionality in Java using JGraphX
I want to implement "Fit to Page" functionality using mxGraph in Java. I tried to find width and height, using view.getGraphBounds().getWidth(), and tried to determine zoom factor to zoom out/in. But didn't worked. Any help/suggestion is greatly…

Pramod
- 21
- 2
2
votes
3 answers
Importing GraphML to create graph in JGraphX
For a project that I working on, I am getting information in the form of GraphML format(I can change the graphML file as well) and I want to create the desired graph from that information, I am able to get the correct layout, with appropriate edges…

longjohnsilver
- 23
- 5
2
votes
2 answers
How to make a parallelogram shaped vertex in JGraphx?
I'm trying to display a flowchart via JGraphx, and I need a parallelogram for input/output block. But JGraphx doesn't seem to know "shape=parallelogram". It seems odd not to have a parallelogram in a library for graphs and flowcharts (and it even…

Hanako Seishin
- 166
- 1
- 2
- 11
2
votes
1 answer
JGraphX - Expand/Collapse of a cell/vertex
I need to have the expand/collapse feature with my mxGraph.
The scenario is like, there are three vertices say v1, v2 and v3. v2 and v3 are linked to v1. Now there is small icon in vertex v1 and when user clicks on the icon the vertex v2 and v3…

AJJ
- 3,570
- 7
- 43
- 76
2
votes
1 answer
Wanting to make a JGraph with a JPanel
I am attempting to create a JFrame where the top is a JPanel of a JGraph and the bottom is JPanel of a bar that allows the user to select how many nodes will appear in the Graph, and the Graph to update after this happens. For this reason I put the…

cogle
- 997
- 1
- 12
- 25
2
votes
1 answer
How to get the value of a target vertex in JGraphX?
I am using a Graph Editor made with JGraphX. When there are two vertices connected with an edge, and the user clicks on the first vertex, I want to get the value of the second vertex.
I am getting the current vertex by:
Object cell =…

Camilo Guevara
- 165
- 1
- 12
2
votes
1 answer
Migration JGraph to Graphx
We know all that JGraph is a very powerful graphic library and now we are in version 6 (JGraphx).
Me I have an application (by the way I am newbye in JGraph) coded in JGraph 5 and I want to migrate it to Graphx.
Is there any tut to know what is the…

Houssam Badri
- 2,441
- 3
- 29
- 60
2
votes
1 answer
Vertex labels painting outside of vertex, over scrollbars and onto other components when setLabelsClipped is true
I've been working with JGraph for a while and it appears there is a painting issue when you set label clipping to true:
The following boiled-down example shows the problem in a living application that you can mess with:
import…

Amish
- 71
- 1
- 5
2
votes
2 answers
Using JAXB with JgraphX?
I have some entities mapped with JAXB annotations to turn them into xml, but within those entities mxCell there is an object, how can I map this object without adding annotations in the code library JgraphX?
There is my Objeto…

Davisson Paulino
- 45
- 6
2
votes
1 answer
JGraphX - how to live preview and apply more complicated graph changes
I have a graph with two kinds of vertices:
main vertices which represent graph nodes
port vertices which are children of main vertices and edges are connected to them.
(Edges cannot be directly connected to node because the port vertex is…

Tomáš Záluský
- 10,735
- 2
- 36
- 64