DirectedGraph - tuning the vertical vs horizontal [message #215406] |
Tue, 02 May 2006 14:53 |
Eclipse User |
|
|
|
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 #215485 is a reply to message #215470] |
Thu, 04 May 2006 04:24 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03324 seconds