Hi,

\n

I am using the mxgraph in java and want to colapse/expand the cells if the cell get \nclicked by the mouse.\nHow can I enable this feature? \nI set the option setFoldingEnabled(true) of the graph component but nothing happen.\nMust I do anything else? I have not found any example for the mxgraph and this problem.

\n

best regards,\nJuli

asked 23 Jan, 20:54

jburger's gravatar image

jburger
112
accept rate: 0%

edited 01 Feb, 11:29

David's gravatar image

David ♦♦
3.8k213


There is an example in JavaScript that might help

link

answered 23 Jan, 21:23

Gaudenz's gravatar image

Gaudenz ♦♦
7.4k15
accept rate: 31%

Is the Java version identical? \nI thought there are different commands used?

(24 Jan, 11:24) jburger

Same same but different.

(25 Jan, 04:48) Gaudenz ♦♦

The example do not really solve my problem. \nI do not want to add or remove items, I want to hide and show \nthe fix child nodes. Is there any example for the current mxgraph?

(29 Jan, 05:43) jburger

mxGraph is the JavaScript version, you mean JGraphX, the Java version. And no, there's no such example for Java.

(29 Jan, 05:54) David ♦♦
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:

×364
×56

Asked: 23 Jan, 20:54

Seen: 293 times

Last updated: 01 Feb, 11:29

powered by BitNami OSQA