Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » DirectedGraph - tuning the vertical vs horizontal
DirectedGraph - tuning the vertical vs horizontal [message #215406] Tue, 02 May 2006 14:53 Go to next message
Eclipse UserFriend
Originally posted by: pbeagan.yahoo_dontspamme_.com

I'm using auto layout based on DirectedGraph. It works well, but lays out
my objects more vertically than horizontally. What should I be looking at
to add more horizontal weighting? Thanks
Re: DirectedGraph - tuning the vertical vs horizontal [message #215470 is a reply to message #215406] Wed, 03 May 2006 19:11 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
There's an API -->

DirectGraph.setDirection(int direction) that takes a PositionConstant define
as a parameter.

I'm guessing you'd want to use PositionConstants.WEST;

-Steve

"Patrick" <pbeagan@yahoo_dontspamme_.com> wrote in message
news:e37u97$1di$1@utils.eclipse.org...
> I'm using auto layout based on DirectedGraph. It works well, but lays
out
> my objects more vertically than horizontally. What should I be looking at
> to add more horizontal weighting? Thanks
Re: DirectedGraph - tuning the vertical vs horizontal [message #215485 is a reply to message #215470] Thu, 04 May 2006 04:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stephen.tom.com

Hello Steven, Do you mean DirectedGraph.setDirection(int direction) ?

But I can find this API in Draw2d and others .What I only find is that
there is a interface Orientable.setDirection(int direction) and its
implemented class.

Can you tell us more about this DirectGraph.setDirection(int
direction) ?
what the package is this class DirectGraph in ? And if possible,can you
give us a sample ?


Thank you Steven very much!
Best Regards to you!
Re: DirectedGraph - tuning the vertical vs horizontal [message #215519 is a reply to message #215470] Thu, 04 May 2006 16:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pbeagan.yahoo_dontspamme_.com

That method DirectedGraph.setDirection() is not available in the Draw2d 3.1
API. AND, when I browse the API, most things are 'for internal use only'.
So I am not sure what I can do to 'tune' my layout to have more horizontal
than vertical. Seems like a limitation, unless I am missing something.



Steven Shaw wrote:

> There's an API -->
>
> DirectGraph.setDirection(int direction) that takes a PositionConstant
> define as a parameter.
>
> I'm guessing you'd want to use PositionConstants.WEST;
>
> -Steve
>
> "Patrick" <pbeagan@yahoo_dontspamme_.com> wrote in message
> news:e37u97$1di$1@utils.eclipse.org...
>> I'm using auto layout based on DirectedGraph. It works well, but lays
> out
>> my objects more vertically than horizontally. What should I be looking
>> at
>> to add more horizontal weighting? Thanks
Re: DirectedGraph - tuning the vertical vs horizontal [message #215534 is a reply to message #215519] Thu, 04 May 2006 18:20 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

It is new API. For 3.1, you will have to:

1) transpose your input
2) invoke DGL
3) transpose the results

"Patrick" <pbeagan@yahoo_dontspamme_.com> wrote in message
news:e3dbam$ujg$1@utils.eclipse.org...
> That method DirectedGraph.setDirection() is not available in the Draw2d
> 3.1
> API. AND, when I browse the API, most things are 'for internal use
> only'.
> So I am not sure what I can do to 'tune' my layout to have more horizontal
> than vertical. Seems like a limitation, unless I am missing something.
>
>
>
> Steven Shaw wrote:
>
>> There's an API -->
>>
>> DirectGraph.setDirection(int direction) that takes a PositionConstant
>> define as a parameter.
>>
>> I'm guessing you'd want to use PositionConstants.WEST;
>>
>> -Steve
>>
>> "Patrick" <pbeagan@yahoo_dontspamme_.com> wrote in message
>> news:e37u97$1di$1@utils.eclipse.org...
>>> I'm using auto layout based on DirectedGraph. It works well, but lays
>> out
>>> my objects more vertically than horizontally. What should I be looking
>>> at
>>> to add more horizontal weighting? Thanks
>
Previous Topic:GEF editor with tree
Next Topic:RC2 GEF available...
Goto Forum:
  


Current Time: Thu Mar 28 12:27:18 GMT 2024

Powered by FUDForum. Page generated in 0.07950 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top