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
2 answers

Can we restrict the zoom level in mxGraph?

I am using mxGraph to create some workflows in my application. By default the zoom In factor is 1.2. I want to restrict zooming after a certain level. How can this be achieved ? Here goes my JSNI code: private native void…
user2368558
  • 81
  • 2
  • 6
1
vote
2 answers

How to add a mouselistener to a vertex - jgraphx

How can I add a mouselistener to a specific vertex in jgraphx? graphComponent.getGraphControl().addMouseListener(new MouseAdapter() { public void mouseReleased (MouseEvent e1) { I can use this fro graphcomponent but how can I…
user2598911
  • 379
  • 2
  • 6
  • 22
1
vote
1 answer

JGraph/JGraphX : Creating a very complex graph

I'm currently working on a software allowing the creation of gamebooks, and I'm trying to add a graph view. I create a graph where the vertices are the paragraphs and the edges the links between them. The gamebook I created has over 100 paragraphs,…
1
vote
1 answer

Jgraph (vanilla): how to set edge label, ProM-specific

I'm currently writing a plugin for ProM in case someone is familiar with it. In general, there is a graph, represented as ProMJGraph, which is directly derived from JGraph. This graph contains: ProMGraphEdge's (direct child of…
gluk47
  • 1,812
  • 20
  • 31
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

Randomize the placement of vertices in jgraph

I have created an application with the help of jgraph for the visualization. I have couple of problems regarding this. 1: I need to change the names of Vertices according to an attribute of the Vertex object. When i run the application with the…
Pathfinder92
  • 117
  • 2
  • 5
  • 12
1
vote
1 answer

Moving cells with JGraphX

I'm using jgraphx 1.12.0.2 and I'm trying to rearrange the vertices of a graph from code. The code looks something like this: Object[] roots = graph.getChildCells(graph.getDefaultParent(), true, false); graph.getModel().beginUpdate(); for (int i =…
alex_and_ra
  • 219
  • 1
  • 16
0
votes
0 answers

mxgraph - edit existing edges

i am trying to realize: that i can edit (reconnect to another vertex) an existing edge without selecting it before. I dont find any solutions for that. My idea, i have to find a way to recognize clicks on start or end of a edge and then delete the…
Flo
  • 1,179
  • 3
  • 15
  • 43
0
votes
1 answer

JGraphT create a random graph from pre existing vertices

I need to create a random graph from a few pre existing vertices. I didn't find a way to do this yet. Each tutorial is using the "VertexFactory" (which btw cannot be resolved even though importing org.jgraph.generate.*) to make up vertices while…
ICEBERG
  • 13
  • 6
0
votes
1 answer

How to set minimum size of an mxGraph vertex (so tooltips work on smallest ones)?

I've got an mxGraph that has very small vertices, in terms of their label, because it starts with 1, 2, 3. The default size of those less-than-10 vertices is too small for a tooltip rollover. How can I set the minimum size of vertices so I get some…
Sam Hokin
  • 660
  • 1
  • 6
  • 15
0
votes
2 answers

How to separate out display and data mxgraph ports example

I am working with mxgraph and using the mxgraph ports example as a starting point for my application. https://jgraph.github.io/mxgraph/javascript/examples/ports.html The example passes the content of each cell through the value property of an mxcell…
ex080
  • 103
  • 2
  • 17
0
votes
2 answers

How to get parent cell from child cell in mxgraph

I want to remove all connected edges to the source from parent, so is there any function that can remove all edges connected from parent to child referring by the cell. How to get parent cell from child cell in mxgraph. I am trying to achieve drag…
Mithun Shreevatsa
  • 3,588
  • 9
  • 50
  • 95
0
votes
0 answers

Source and targets are not shown for edges in mxGraph when encoded to XML

I am using mxGraph for an application that requires to encode the graph into XML and load it whenever needed. I'm using the following code for encoding the graph const encoder = new mxCodec(); const result = encoder.encode(graph.getModel()); const…
Sankalp Kataria
  • 479
  • 7
  • 24
0
votes
0 answers

How to integrate mxgraph with reactjs?

I want to integrate Javascript MxGraph-Editor to React js .I have tried many ways.But It's still showing 'variable'(javascript variable ) not defined .Can anyone help me ? GraphEditor.js:66 Uncaught ReferenceError: EditorUi is not defined at…
prakash vp
  • 11
  • 5
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
1 2 3
8 9