From: Dawit Y. S. <ds...@ic...> - 2003-10-27 02:41:41
|
Danyel, Thank you for your prompt reply. Read on... > > (3) Attach event listeners to edges and vertices (which would implement > > some fairly complicated operations). > > Although event processing is in our future, we don't have it > yet. Among other things, we're trying to balance out the weight and > overhead costs of attaching bunches of listeners (and checking them > all) to each object. > > What sorts of things do you want to listen to? Are you looking to > notice things like when the graph changes, or do you want to work > on things like when the user has clicked on part of the graph? > The event listener I want is something like "EdgeClickListener" (and "NodeClickListener") that enables a functionality that allows the user to click on nodes and edges in an arbitrary order in order to specify a set of subgraphs (paths) in the graph. Clicking an edge automatically selects the incident nodes while clicking a node results in a trivial subgraph containing just a single node. The user can make multiple such selections before launching some operations (e.g. actual subgraph extraction). It will be sufficient for my needs if the listener can simply determine which node/edge object is associated with the clicked edge or node visualization. Thanks once again, - Dawit |