Automatic-connection to an existing Node [message #207700] |
Fri, 20 January 2006 09:29 |
Eclipse User |
|
|
|
Originally posted by: strayduck.rhathymia.net
Hello,
I made a simple editor that is able to add Node and to connect between Nodes (similar to 'Shape editor' sample).
So next I want to change the behavior as shown below:
1.) Each node can have *only one or two* Connections, which means the tree is linear, Node is either root or leaf. Root-node has one Connection to leaf, Leaf-node has one or two Connections (one point to root or leaf, another is pointed to from child-leaf).
2.) When adding new Node,
2-1.) If there are Node(s), new Node is connected to the tail Node automatically.
2-2.) If there is no Node, just new Node add.
I'd read past archives here, and found it's impossible that two actions or commands per one event.
Is there alternative resolutions?
Thanks
|
|
|
Re: Automatic-connection to an existing Node [message #207710 is a reply to message #207700] |
Fri, 20 January 2006 10:37 |
Eclipse User |
|
|
|
Originally posted by: ingo.koch[nospam].sap.com
Hi
"strayDuck" <strayduck@rhathymia.net> wrote in message
news:32759050.1137749407003.JavaMail.root@cp1.javalobby.org...
> Hello,
>
>
> I made a simple editor that is able to add Node and to connect between
Nodes (similar to 'Shape editor' sample).
>
> So next I want to change the behavior as shown below:
>
> 1.) Each node can have *only one or two* Connections, which means the tree
is linear, Node is either root or leaf. Root-node has one Connection to
leaf, Leaf-node has one or two Connections (one point to root or leaf,
another is pointed to from child-leaf).
>
> 2.) When adding new Node,
>
> 2-1.) If there are Node(s), new Node is connected to the tail Node
automatically.
>
> 2-2.) If there is no Node, just new Node add.
>
>
> I'd read past archives here, and found it's impossible that two actions or
commands per one event.
that
|
|
|
Powered by
FUDForum. Page generated in 0.07942 seconds