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

How to get source and target of edge after any change on cell connect?

I'm programming a web application that use workflow. I used jgraph(Mxgraph) for designing workflow. I will save workflow parts in database (activities, notifications, transitions). I need to get source and target of transitions. So how should I…
Bahman Shafiei
  • 395
  • 5
  • 22
0
votes
1 answer

how will get Draw.io development source code?

How will get below link source code(Draw.io)? Can you help me. https://jgraph.github.io/mxgraph/javascript/examples/grapheditor/www/index.html
Sajith
  • 856
  • 4
  • 19
  • 48
0
votes
0 answers

MXGraph draw a line from the edge of a vertex

I'm currently working on a Flowchart builder that uses the MXGraph library. It would be nice to have the abilitie to draw a line when hovering over the edge of a vertex. Just like Lucidchart has: https://www.lucidchart.com but I have no clue in how…
spoilerd do
  • 377
  • 6
  • 20
0
votes
1 answer

How set style in popur menu for JGraph?

I use js-library JGraph. I change my styles as follows: var mxPopupMenuShowMenu = mxPopupMenu.prototype.showMenu; mxPopupMenu.prototype.showMenu = function() { mxPopupMenuShowMenu.apply(this, arguments); var _div = this.div; …
Range
  • 416
  • 7
  • 20
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

Mxgraph check which shape is added

I am using CELLS_ADDED event to check if shape added in the graph. How can I get the label for the shape? My code is Graph.prototype.addListener(mxEvent.CELLS_ADDED, function(sender, evt) { var e = evt.getProperty('event'); // mouse event …
Ahsan Sajjad
  • 34
  • 1
  • 9
0
votes
1 answer

Draw line in mxGraph with XML?

I use this example of mxGraph Editor I'm trying to use the library to make ladder diagramming editor, so I want to draw start and end lines, but I need them all as a boundary for the diagramming area from left and right all time ( start with the…
Ahmed El Damasy
  • 671
  • 6
  • 13
0
votes
1 answer

mxgraph cell.getParent is not a function

I am trying to implement the mxgraph. For non html value in the node or edge it's working fine but whereas for html value it's throwing the error cell.getParent is not a function. Even I set the html options…
Harish Nayak
  • 348
  • 3
  • 18
0
votes
1 answer

How to iterate Graph and list all connections with org.jgrapht

I am attempting to employ compile group: 'org.jgrapht', name: 'jgrapht-core', version: '1.1.0' To visualise relationships between Teams and Team Members. For example:- "Team One" has members "Team Member A", "Team Member B", "Team Member C" "Team…
Hector
  • 4,016
  • 21
  • 112
  • 211
0
votes
0 answers

mxgraph : svg image not exported in pdf or png

I am working with the very good mxgraph library. I base my application on the GraphEditor example. I have used my own PNG icons. Everything works well. For a better rendering I want to use SVG images. I have tried to remplace PNG image by SVG image,…
Mikael
  • 1
  • 2
0
votes
0 answers

How to create tooltip on vertex in jgraph?

How can I create a tooltip when clicking on vertex in Jgraph? I tried the following code, but the tooltip is not showing, although the MousePressed event is…
Mina Nabi
  • 3
  • 3
0
votes
1 answer

How to have characterize edges in DefaultDirectedGraph or JGraphT?

I am using DefaultDirectedGraph to create my directed graph, where each vertex is an object. DefaultDirectedGraph g = new DefaultDirectedGraph(DefaultEdge.class); I was wondering if it is possible to characterize the edges? For example, I would…
Mina Nabi
  • 3
  • 3
0
votes
1 answer

Saving mxCodec and mxGraphModel objects into localStorage

I am using mxGraph in Angular web application that can swtich between different pages where the mxGraph drawings are kept. The component that displays current drawing uses mxGraphModel and mxCodec objects as properties. Need to save mxGraphModel…
Miroslav Radojević
  • 487
  • 1
  • 5
  • 20
0
votes
1 answer

MxGraph - Javascript function for ID value for the cell

When we drop and drag the object into diagram canvas, the id attribute is assigned to that object. The id values are unique one. Which Javascript function in mxgraph called for the assign id value for the cell?
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
1 2 3
8 9