Menu

#6 Center Node

open
nobody
None
5
2006-03-09
2006-03-09
utpal_amin
No

How can I center a node using Java script. I have
graph in the applet and would like to center a
particular node based on user's click outside of the
graph. I am planning on using javascript. Earlier I
saw an example which was doing that but can't find
that now. It had something like this

document.testApplet.getGraphPanel().centerNode("I20");

Where testApplet is the name of the applet.

Thanks.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.