DirectGraphLayout [message #164876] |
Thu, 20 January 2005 18:03  |
Eclipse User |
|
|
|
Originally posted by: brett.bock.embarcadero.com
Using the DirectedGraphLayout object, I have a fairly simple test case that
fails, see figure. Basically if a node is not connected by an edge to
another node the layout will throw.
Am I missing something fundamental here? What is the standard way to
correct this situation.
Thank you,
Brett
|
|
|
|
Re: DirectGraphLayout [message #164969 is a reply to message #164954] |
Fri, 21 January 2005 10:25  |
Eclipse User |
|
|
|
Originally posted by: brett.bock.embarcadero.com
Great! That works very well.
"Michael MacFadden" <mmacfadden@redoaksw.com> wrote in message
news:csqv6d$rge$1@www.eclipse.org...
> The DirectiedGraph layout expects the graph to be completely connected,
> meaning no disconnected components. You should take a look at the schema
> editor example. URL:
>
> http://www.eclipse.org/articles/Article-GEF-editor/gef-schem a-editor.html
>
> When the auto layout is gone, temporary edges are added to the graph that
> connects all disconnected components. The edges only exist in the graph
> and not the model. Take a look at the NodeJoiningDirectedGraphLayout
> class. This makes use of the ClusterEdgeCreator and DummyEdgeCreater
> classes to accomplish this. After the layout is done the dummy edges (and
> possibly nodes) are just discarded because they don't correspond to any
> real entity in the model.
>
> Hope this helps.
>
> ~Mike MacFadden
>
> Brett Bock wrote:
>> Using the DirectedGraphLayout object, I have a fairly simple test case
>> that fails, see figure. Basically if a node is not connected by an edge
>> to another node the layout will throw.
>>
>> Am I missing something fundamental here? What is the standard way to
>> correct this situation.
>>
>> Thank you,
>> Brett
|
|
|
Powered by
FUDForum. Page generated in 0.26223 seconds