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

mxCellEditor: strip CSS styling before pasting text

I would like to copy/paste text from MS Excel into my mxGraph editor in order to label nodes and edges. Problem: The copied cell content from Excel comes with a lot of CSS styling, so for example it looks like…
Boris
  • 338
  • 2
  • 20
0
votes
1 answer

Implementing a hierarchical tree editor with mxGraph

I would like to implement an editor for dialogue trees with mxGraph. I started out with the workfloweditor example [1] and try to customize the code to my needs. Drawing the graph using the subprocess template as nodes and directed connectors works…
Boris
  • 338
  • 2
  • 20
0
votes
1 answer

mxGraph diagrameditor change label position

I'm editing the digrameditor in here! for my own project and I need to position the labels of the vertices to bottom. I tried by adding follow changes but seems it's not the case. .... // Program starts here. The document.onLoad executes the //…
0
votes
0 answers

Java Lang Error OSGI bundle

I have to implement an old peace of code as an OSGI bundle apparently this old code heavily depends on swing components even though I have included all of the swing dependencies to bundle manifest I still get the following exception, which is caused…
mr. Holiday
  • 1,780
  • 2
  • 19
  • 37
0
votes
1 answer

mxgraph custom vertex as image

Can someone point me where/how to set the vertex to image? I want the shape to be similar to the icon I dragged/dropped in the graph. At the moment when I drag/drop icon on the graph its just showing a rect shape. toolbar icon
nCore
  • 2,027
  • 7
  • 29
  • 57
0
votes
1 answer

constrain proportions while resizing images

I implemented drag and drop of images and now i want to constrain proportions of images while resizing. /** * Variable: constrainChildrenOnResize * * Specifies if children should be constrained according to the * switch if…
invariant
  • 8,758
  • 9
  • 47
  • 61
0
votes
0 answers

How to save a JGraph?

I'm using Java and I need to save my JGraph. When I open the file I find nothing, the file is a Textdocument. String filename="C:\\Users\\asmaa\\Desktop\\PFE\\asma" ; mxCodecRegistry.register(new mxModelCodec( new mxGraphModel())); try { …
J.X
  • 23
  • 3
0
votes
1 answer

Adding vertices, edges and ports using JGraph

I want to add new vertices and edges and create a graph using JGraph Library. I always get this java.lang.NullPointer exception. I have created a class function createvertex to create new cells/vertices and drawing edges my connecting to ports. But…
0
votes
1 answer

JGraph disable handles/connections on Vertexes

Im am trying to disable connections on all my (sub) vertexes that i use for showing cell icons/labels. When i do run the following code the inserted vertex is still somehow connectable. labelCellObject = (mxCell)getGraph().insertVertex(this,…
MarkNL
  • 41
  • 2
0
votes
0 answers

JGraph create uni/bidirectional graph of paths

I'm working on visualization of shortest path algorithms. I have a graph of edges and vertices and I'd like to draw it using JGraph. So far I used as an example this code: JGraph in a JFrame It works nice, but it has fixed coordinates of…
Mike
  • 809
  • 6
  • 20
0
votes
1 answer

Dijkstra's Shortest Path algorithm not returning shortest path with smallest weight

I'm using a graph library called JGraphT and in my program I have several vertex's connected together by an edge with a weight of the cost of travel. In one example where i weight by just an integer, it works! But when i change this to using my…
madcrazydrumma
  • 1,847
  • 3
  • 20
  • 38
0
votes
0 answers

JGraphx pause execution. show point by point

I have to show a graph with some points, i want that the points appear when it was generated, not all at end. I want to show the result point by point. I was looking for but i didnt find anything. is it possible? Thank you!
0
votes
1 answer

Add a mouseListener on a Vertex

I'm trying to make a graph with JGraphX in Java and add a mouseListener on a specific type of vertex. I've attempted to use graphComponent but it does nothing... This is my code: mxGraphComponent graphComponent = new…
amandine
  • 17
  • 6
0
votes
1 answer

Marquee selection does not works on Jgraphx

I'm writting a program using Jgraphx and the multiple selection works well (I can select one node, press ctrl and click on other node and is selected then), but I cannot make the marquee selection works (I click and drag the mouse but no rectangle…
yoprogramo
  • 1,306
  • 9
  • 14
0
votes
1 answer

How to set and edge's arrow size on JGraph?

I am using JGraph to draw some simples graphs. Right now I want the arrows in the end of the edges to be bigger. I have already set their shape by using the mxConstants.STYLE_START/ENDARROW key and the appropriate mxConstants.ARROW_X value,…
dvaccam
  • 61
  • 6
1 2 3
8 9