This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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: 23706
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: 4745
117
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!