Questions tagged [jgraphx]

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.

182 questions
1
vote
1 answer

Have some way to put guidelines in JgraphX​​?

I saw that is possible to use guidelines in the javascript version of mxGraph and I would like to know if has some way to do the same in the Java version?
1
vote
1 answer

Prevent a vertex from being moved into a group

Using mxGraph version 1.10.1.1 The graph contains a group and a vertex outside the group. Based on an attribute of the vertex how would I go about preventing users from dragging this node into the group? Listening to mxEvent.CELLS_MOVED doesn't seem…
sankargorthi
  • 369
  • 3
  • 21
1
vote
1 answer

Making a deterministic graph

Is it possible to make the graph deterministic? I mean e.g.: if I add A vertex and then B, the graph will look the same as if I would add B first and then A. I am currently using a mxCompactTreeLayout, but it doesn't work as I'd like to.
tobi
  • 1,944
  • 6
  • 29
  • 48
1
vote
1 answer

jgraphx overline vertex labels

i'm trying to overline vertex labels via HTML-Code in java, but it doesn't work. underline and line-through work perfectly, but i really need overline cell.setValue("hiii"); can anyone help?
1
vote
1 answer

Event listener for edge changing source/target (Jgraphx)

how do I get the event of changing the source or target of an edge? I can get when the edge first connect two nodes, but I can't find to the cases when the user changes the source or target of an already-created edge.
1
vote
2 answers

Error message running JGraphX Hello World example

I am getting following error message when I run the HelloWorld.java example, out of JGraphX package, and move a cell by dragging and dropping it. java.io.IOException: Data translation failed: not an image format at…
fachexot
  • 491
  • 1
  • 8
  • 24
0
votes
0 answers

How to draw a hierarchical diagram that contains groups?

I'm currently attempting to use JGraphX to create a diagram in a Swing application. My goal is to achieve something similar to this (this should be a directed graph, I just didn't have arrowheads in my mockup tool): Using JGraphX, the closest I can…
Jesse Barnum
  • 6,507
  • 6
  • 40
  • 69
0
votes
0 answers

How to make a dynamic visualized graph with JgraphX?

I'm have a trouble with my project( at school). I need show how DFS, BFS,... work in Java and I decided to make it with JgraphX after watching this video: https://www.youtube.com/watch?v=oRR6VW5AIvM&t=7s . But this trouble is I couldn't find any…
Anh Tuan
  • 1
  • 1
0
votes
1 answer

I have a problem with the java code I just imported

Unbound classpath container: 'JRE System Library (java-11-openjdk-amd64]' in project 'Test Compilation'
0
votes
0 answers

How to force jGraphX to use straight lines

I am creating a huge diagram with jGraphX, but for easier preview it would be easier to follow if the diagram was using straight lines instead of lines that have corners Is there a way to do that?
0
votes
0 answers

How to prevent JavaFX GUI to auto-close after closing the graph generated by JGraphX?

There's a button btn in my JavaFX GUI interface. When clicking btn, a graph will be drawn. But when I close the graph, my JavaFX GUI will auto-close as well, which is not desired. How can I prevent the JavaFX GUI from auto-close? If the solution…
H42
  • 725
  • 2
  • 9
  • 28
0
votes
1 answer

How to handle disconnect event in mxgraph?

I am trying to add two vertexes and disconnect them, by using this example https://jgraph.github.io/mxgraph/javascript/examples/portrefs.html. In mxGraph, there is a listener available for connecting event…
0
votes
1 answer

Can JGraphX be used "headless"?

It's not obvious from looking at the documentation for JGraphX whether one can use it just perform layout or nodes and edges without there being a rendering environment. Can it be used "headless"?
0
votes
0 answers

Is there a way to insert a vertex with a user defined image icon from a local folder ? (Jgraphx)

I want to use a user defined icon as vertex. It works if the png file is saved in the resource folder, however i want to get the png file from a local folder Actions.directory.toString() - folder location as String - working the vertex appears…
Anna
  • 19
  • 6
0
votes
0 answers

Getting "AWT-EventQueue-0" Exception trying to override toString()

I'm trying to write an algorithm which builds and visualizes a Gomory-Hu-Tree out of a given network, using JGraphT and JGraphX. I read in another post that I had to override the toString() method of the used DefaultWeightedEdge class to visualize…
Infty
  • 13
  • 4