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
2
votes
1 answer

MxGraph - Export Diagram using JavaScript

In MxGraph when export the diagram we are passing the XML value to server side and convert into image. Is there any option in Javascript (client side) to export the diagram, means convert the Graph xml to jpeg or png image using front end…
2
votes
1 answer

How to get mxGraph's/JGraph selected cell including its child elements?

When we get the selected cells using graph.getSelectionCells(), it returns only the outer cell which is selected, however, I need to get its child elements as well. The returned cell does not contain its child elements details in it.
Nagaraja R
  • 39
  • 1
  • 5
2
votes
0 answers

mxgraph - rotation of custom shape in custom shape xml (stencil)

I have created custom shape that I draged and droped it. Now I rotate it in any direction. When traversing the xml of the graph, I can get rotation of that custom shape. I am going traversing through the graph and creating a new shape by creating…
2
votes
0 answers

Getting the shortest number of paths irrelevant of the weight JGraphT

I'm trying to find/create an algorithm to find the least number of edges to traverse to, to get to a vertex. I am using a SimpleDirectedWeightedGraph, but I don't want to use Dijkstra's algorithm because I want to omit the weights doing this. Is…
madcrazydrumma
  • 1,847
  • 3
  • 20
  • 38
2
votes
1 answer

Equivalent to JGraph for JavaFX8?

I want to port an old swing tool which uses an also old version of JGraph to JavaFX8. However, since JGraph is a Swing-Based library, is thought about replacing it, too. So, is there something equivalent to JGraph, but working with JavaFX8?
grackkle
  • 776
  • 1
  • 9
  • 26
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…
2
votes
1 answer

How to get the String (label) of a Vertex by clicking on it (Jgraph)?

In jgraph, is there a function similiar to the .getText(); for a vertex? I need to get the text attached to them in the label. Thanks.
Carlos
  • 49
  • 1
  • 1
  • 8
2
votes
1 answer

Java JGrapht Bipartite graph

I seen examples of jgraph and jgrapht and there easy to follow but now sure how I would go about using the CompleteBipartiteGraph? How is the syntax to be used to instantiate the…
MAXGEN
  • 735
  • 1
  • 10
  • 21
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
0 answers

How to use jgrapht?

I have a problem using JGraphT to visualize graphs. I use netBeans and I have imported .jar for JGraph and JGraphT and copied everything from JGraphT Visualizations via JGraph and added this code: private void…
L H
  • 77
  • 1
  • 4
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…
1
vote
1 answer

How to get the name of mxConnectionConstraint defined for a point in mxgraph

Hi how to get the connection point name in mxgraph during connect Here is how I have defined connection point for all: mxShape.prototype.constraints = [ new mxConnectionConstraint(new mxPoint(0.5, 0), true,'top'), new…
EaBengaluru
  • 131
  • 2
  • 17
  • 59
1
vote
0 answers

Detect if a node when dropped/moved intersects another node - mxgraph

I am trying to detect if any part of cell node intersects with another cell when u move a cell and some of its body intersects with another node. I tried to write my own custom mouseUp function such that if the there's some intersection, I'll…
user3775998
  • 1,393
  • 3
  • 13
  • 22
1
vote
0 answers

Multiple layout in mxgraph

I am trying have multiple mxCompactTreeLayout with its layout manager in a single mxgraph canvas. can anyone help me how to achieve this. Below code i have tried to add multiple tree layout to the same canvas. var layout = new…
prateeknaik
  • 71
  • 1
  • 7
1
2
3
8 9