I am trying to set the edge style to entity relation, but I cannot find anything in the code except the following line from the editor.

graph.setCellStyle( "edgeStyle=mxEdgeStyle.EntityRelation" );

But the above code doesn't seem to be changing the edge style. Anyone have any experience setting the edge style?

asked 17 Jan '12, 09:31

glassknife2141's gravatar image

glassknife2141
1114
accept rate: 0%

edited 14 Sep '12, 06:50

David's gravatar image

David
4.9k21831

This seems to have something to do with calling layout.setDisableEdgeStyle( false ); I discovered that by luck.

(17 Jan '12, 11:04) glassknife2141

Another question I have is that I didn't see anything about "edgeStyle=mxEdgeStyle.EntityRelation" in the documentation. Is it there and I just missed it? Or is there another document covering all the layout styles that I didn't get in the download?

(17 Jan '12, 11:06) glassknife2141

For me worked "edgeStyle=entityRelationEdgeStyle" or "edgeStyle="+mxConstants.EDGESTYLE_ENTITY_RELATION

link

answered 17 Aug '12, 07:48

mac's gravatar image

mac
266
accept rate: 50%

See mxStyleRegistry for a list of possible edge styles.

link

answered 17 Jan '12, 21:36

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

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:

×194
×100
×50
×45

Asked: 17 Jan '12, 09:31

Seen: 3,954 times

Last updated: 14 Sep '12, 06:50