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
1
vote
1 answer

How to get coordinates of a mxCell?

I need to get the coordinates (x,y) of a mxCell that i find by his Id, but when i call getGeometry() on it, it gives me null and after i get NullPointerException. private double getX(String node){ mxCell cell = (mxCell)…
Stefano Berti
  • 141
  • 1
  • 11
1
vote
0 answers

Obvious path can't be found by DijkstraShortestPath in JGrapht

I'm trying to get JGrapht's DijkstraShortestPath class to be able to find the simple path 1 => 4 => 8 => 9. For some reason, though, getRoute returns null for any input except 1, 4 [1=>8 and 1=>9 return null]. According to the docs, graphpath should…
1
vote
0 answers

what doese mean about [routePatterns] in mxEdgeStyle.js

in the mxEdgeStyle.js routePatterns: [ [ [ 513, 2308, 2081, 2562 ], [ 513, 1090, 514, 2184, 2114, 2561 ], [ 513, 1090, 514, 2564, 2184, 2562 ], [ 513, 2308, 2561, 1090, 514, 2568, 2308 ] ], [ [ 514, 1057, 513, 2308, 2081, 2562…
Nauhil
  • 13
  • 2
1
vote
2 answers

How to export a mxGraph to a visio diagram?

I've implemented a graph using mxGraph libraries. Is there any way to export this graph to visio?
Behnaz
  • 63
  • 1
  • 11
1
vote
0 answers

Flow in pipe animation in JGraph/MXGraph

Is it possible to make a 'flow in a pipe' annimation in JGraph/MXGraph? If yes, can someone post some instructions/MWE how to do this? Comparable to this GoJS Example: http://gojs.net/latest/samples/processFlow.html
robert
  • 1,921
  • 2
  • 17
  • 27
1
vote
0 answers

mxGraph bug when creating image of diagram on server

Greeatings! I'm using mxGraph and i impact with a problem. I need to create picture of created diagram on server. For this purposes i use default java servlet -java\examples\com\mxgraph\examples\web\ExportServlet.java It's create picture, but in…
SamirAD
  • 11
  • 3
1
vote
1 answer

how to wrap text in SVG

So I'm rendering some objects with specific width of 120px and the objects will have different titles. My problem is when the title is too long it doesn't wrap it and put it in a new line. Is there a work-around this kind of issue in svg? var labels…
nCore
  • 2,027
  • 7
  • 29
  • 57
1
vote
0 answers

Difference between 2 labelled graphs

Does there exist a pre-defined function in jgraphx or any other such Java based visualization library that takes-in 2 labelled graphs as input and outputs/highlights the set of nodes which differ between these 2 input graphs?
1
vote
1 answer

How to represent bi-directional edges in graph

So I'm using the JGraphT library and I have a method already to create a two-directional edges in my program. However when I display the graph, it currently displays the return direction like so: D1 -> D2 D2 -> D1 When I would prefer it to be as…
madcrazydrumma
  • 1,847
  • 3
  • 20
  • 38
1
vote
0 answers

(JGraphX) Set vertex label width

I create a vertex and put a value in it, showed as the vertex label. I need to make it with a tall height label and at the same time, small width, but when I set the "fontSize=44" at the vertex style, it also changes the width (obviously) of the…
Fagundes
  • 119
  • 10
1
vote
2 answers

Disallow particular cell to stretch

How to disallow particular cell to stretch ? "graph.setCellsResizable(false)" There are methods for all cells, how to apply it to a particular cell.
Egor Rezchikov
  • 431
  • 1
  • 4
  • 8
1
vote
1 answer

Graph Layout Algorithms for JGraphT

I'm using JGraphT to create a graph and I want to be able to visualise and manipulate it. There are some examples that show how to visualise the graph, but it seems that it involves quite a lot of manual code to layout the vertices, etc. I was…
remi
  • 3,914
  • 1
  • 19
  • 37
1
vote
0 answers

Graph Layout that honors edge weights

I am using JGraph 5.13 with jgrapht 0.9.0. I was wondering if there is a layout that honors edge weights so if a edge has weight 500 then it appears 5 times longer than a edge with weight 100 and also a layout that tries to put maximum distance…
Salil Surendran
  • 2,245
  • 4
  • 27
  • 42
1
vote
0 answers

Getting a jvm.dll error when installing a program that requires java runtime environment 1.4.1

I am trying to install this program I found called JGraph. Softpedia says the program requires Java Runtime Environment 1.4.1. I had previously updated my version of java, then I installed this older 1.4.1 version of Java runtime environment. After…
wimworks
  • 283
  • 3
  • 15
1
vote
0 answers

Why are my curved edges not updating correctly?

I'm trying to customize a layout of JGraph. I want to create curved edges, but I have a problem. Every time I create a group of vertex on JGraph, and I am firing an event to update this graph, the edge is missing points compared to the previous…
albsilva
  • 121
  • 6
1 2 3
8 9