Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zest: Open Constraints for TreeLayout and others?
Zest: Open Constraints for TreeLayout and others? [message #240676] Mon, 14 January 2008 05:17 Go to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Sorry to newgroup bomb, but I'm also wondering if there is a way to
override these layouts so that they get set to a preferred size equal
to the 'ideal' layout sans Node Resizing. IOTW, I just want to layout
my tree nodes such that they are all one size and the viewer grows to
whatever size fits that ideal. I've tried all of the LayoutStyle
options and have figured out how to give it some arbitrary size by
overriding preLayoutAlgorithm. I suppose I can calculate the expected
max x and y nodes and simply set size by an appropriate multiple but
I'm wondering if there is a more elegant way.
Re: Zest: Open Constraints for TreeLayout and others? [message #240731 is a reply to message #240676] Tue, 15 January 2008 05:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Can you please open a bug for this and I will see what I can do.

(open it in GEF under the GEF component)

Just so I understand, you don't mind if your canvas grows, the node
sizes are what's important.

cheers,
ian

Miles Parker wrote:
>
> Sorry to newgroup bomb, but I'm also wondering if there is a way to
> override these layouts so that they get set to a preferred size equal to
> the 'ideal' layout sans Node Resizing. IOTW, I just want to layout my
> tree nodes such that they are all one size and the viewer grows to
> whatever size fits that ideal. I've tried all of the LayoutStyle options
> and have figured out how to give it some arbitrary size by overriding
> preLayoutAlgorithm. I suppose I can calculate the expected max x and y
> nodes and simply set size by an appropriate multiple but I'm wondering
> if there is a more elegant way.
>
Re: Zest: Open Constraints for TreeLayout and others? [message #240980 is a reply to message #240731] Sun, 27 January 2008 02:14 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Exactly, and will do.

On 2008-01-14 22:16:30 -0700, Ian Bull <irbull@cs.uvic.ca> said:

> Can you please open a bug for this and I will see what I can do.
>
> (open it in GEF under the GEF component)
>
> Just so I understand, you don't mind if your canvas grows, the node
> sizes are what's important.
>
> cheers,
> ian
>
> Miles Parker wrote:
>>
>> Sorry to newgroup bomb, but I'm also wondering if there is a way to
>> override these layouts so that they get set to a preferred size equal
>> to the 'ideal' layout sans Node Resizing. IOTW, I just want to layout
>> my tree nodes such that they are all one size and the viewer grows to
>> whatever size fits that ideal. I've tried all of the LayoutStyle
>> options and have figured out how to give it some arbitrary size by
>> overriding preLayoutAlgorithm. I suppose I can calculate the expected
>> max x and y nodes and simply set size by an appropriate multiple but
>> I'm wondering if there is a more elegant way.
Re: Zest: Open Constraints for TreeLayout and others? [message #241173 is a reply to message #240980] Fri, 01 February 2008 06:18 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Oh, and not just the node sizes, but the relative spacing between nodes
(in the minimal distance case).

On 2008-01-26 19:14:48 -0700, Miles Parker <milesparker@gmail.com> said:

>
> Exactly, and will do.
>
> On 2008-01-14 22:16:30 -0700, Ian Bull <irbull@cs.uvic.ca> said:
>
>> Can you please open a bug for this and I will see what I can do.
>>
>> (open it in GEF under the GEF component)
>>
>> Just so I understand, you don't mind if your canvas grows, the node
>> sizes are what's important.
>>
>> cheers,
>> ian
>>
>> Miles Parker wrote:
>>>
>>> Sorry to newgroup bomb, but I'm also wondering if there is a way to
>>> override these layouts so that they get set to a preferred size equal
>>> to the 'ideal' layout sans Node Resizing. IOTW, I just want to layout
>>> my tree nodes such that they are all one size and the viewer grows to
>>> whatever size fits that ideal. I've tried all of the LayoutStyle
>>> options and have figured out how to give it some arbitrary size by
>>> overriding preLayoutAlgorithm. I suppose I can calculate the expected
>>> max x and y nodes and simply set size by an appropriate multiple but
>>> I'm wondering if there is a more elegant way.
Previous Topic:Graph Layouter: Edge.setPoints not visible
Next Topic:In draw2d, how do you align text about a point?
Goto Forum:
  


Current Time: Thu Apr 25 02:27:43 GMT 2024

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

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

Back to the top