I need to en-/disable the mxGraphHandler depends on a boolean flag of my application. The reason therefor is to set an individual mouse listener to the mxGraphComponent instead of the mxGraphHandler to handle different actions. Is there any way to disable or remove the handler of the mxGraphComponent and set my implemented mouse adapter as the default one?

asked 17 Jan '12, 22:52

Hardie82's gravatar image

Hardie82
76318
accept rate: 7%

edited 22 Jan '13, 16:15

David's gravatar image

David
4.9k21831


Try graphComponent.getGraphHandler().setEnabled(false)?

link

answered 17 Jan '12, 23:12

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

edited 22 Jan '13, 16:15

David's gravatar image

David
4.9k21831

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
×6
×3

Asked: 17 Jan '12, 22:52

Seen: 1,644 times

Last updated: 22 Jan '13, 16:15