0
1

Does anyone know how to update an edge color in Jgraphx?\nI know there is an statement for vertex color update:\ngraph.setCellStyles(mxConstants.STYLE_FILLCOLOR,"red", new Object[]{cell});\nis there any for the edge?

\n

Thank you

asked 22 Aug '11, 01:39

P2del's gravatar image

P2del
33211
accept rate: 12%


mxConstants.STYLE_STROKECOLOR\n
link

answered 22 Aug '11, 02:10

David's gravatar image

David
4.9k21831
accept rate: 47%

thanks David for your answer. However, what I need is to find and edge and change it is color. that is why i am looking for something similar to graph.setCellStyles(mxConstants.STYLE_FILLCOLOR,"red", new Object[]{cell}. Since method just support the vertex color and do not accept "mxConstants.STYLE_STROKECOLOR" as an input parameter.

(22 Aug '11, 04:55) P2del

Change STYLE_FILLCOLOR for STYLE_STROKECOLOR. Are you telling you have tried this and it doesn't work? Both are strings, how can the method fail to swap one string for another as parameter?

(22 Aug '11, 04:59) David

Thank you it worked!

(22 Aug '11, 09:15) P2del
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×228
×100
×11

Asked: 22 Aug '11, 01:39

Seen: 3,979 times

Last updated: 22 Aug '11, 09:15