• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

mxGraph  RSS feed

 
Greenhorn
Posts: 21
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys I am new to Advanced java. I am working with mxGraphs to plot a big graph . The code which I am posting below plots a graph with rectangular edges but I want to plot a graph with circular edges. Can Someone please help?

             
 
Raj Aditya
Greenhorn
Posts: 21
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry a small edit in my post. It is rectangular nodes not edges
 
Sheriff
Posts: 23876
50
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with mxGraph, but it seems to me that mxgraph circular edges leads to several potential solutions. If not, then don't hesitate to post back and tell us why none of those links were what you meant.
 
Raj Aditya
Greenhorn
Posts: 21
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using the link you provided and from the understanding gained, I made the changes in the code but output is still the same.Code is shown below

 
Saloon Keeper
Posts: 5046
134
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you change that you thought would help with this?

Also, Paul posted a search link - which one of the results did you try to follow?
 
Raj Aditya
Greenhorn
Posts: 21
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here I added the statements Object parent = graph.getDefaultParent();
                      mxCircleLayout layout = new mxCircleLayout(graph,100);
                       layout.execute(parent);
Basically last 2 statements were missing before. So I thought that the default layout would be a rectangular one but by adding the second one it would change to a circle of radius 100.

I followed the link https://jgraph.github.io/mxgraph/docs/js-api/files/layout/mxCircleLayout-js.html and http://www.massapi.com/method/com/mxgraph/layout/mxCircleLayout.execute.html
 
Raj Aditya
Greenhorn
Posts: 21
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also there is a small problem with insertvertex function. That is the syntax for node of any shape.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!