How can i highlight the cell with red border, as in case of a multigraph disabled graph?\nI override the method isvalidsource() & isvalidTarget(). But cell is not highlighted when the cell is invalid.

asked 01 Feb '12, 01:54

Saju%20Chithran's gravatar image

Saju Chithran
11916
accept rate: 27%


In mxConnectionHandler, remove the isValidSource branch on line 224 and add the following check in 235:

\n
else if (!isValidSource(state.getCell()))\n{\n  return false;\n}\n
link

answered 01 Feb '12, 05:43

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

Thanks Gaudenz, it works perfect!!!

(01 Feb '12, 17:47) Saju Chithran
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:

×100
×50
×11
×8
×6

Asked: 01 Feb '12, 01:54

Seen: 1,370 times

Last updated: 01 Feb '12, 17:47