Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [zest] Network with pre-defined coordinates
[zest] Network with pre-defined coordinates [message #247595] Wed, 04 March 2009 15:12 Go to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

is it possible to position nodes with Zest based on pre-defined
coordinates?

I have objects which represents physical locations and which have a name,
a longitude and a latitude. Can I place these locations via zest on their
positions?

If yes, can you point me to a small example on how to do this?

Best regards, Lars
Re: [zest] Network with pre-defined coordinates [message #247615 is a reply to message #247595] Wed, 04 March 2009 16:32 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Update:

I see that I can set the location via:

new GraphNode(g, SWT.NONE, "Test").setLocation(10,10);

Which layout manager would keep the position?

Unfortunately I cannot find any information on zest in
http://help.eclipse.org/ganymede/index.jsp

Best regards, Lars
Re: [zest] Network with pre-defined coordinates [message #247620 is a reply to message #247615] Wed, 04 March 2009 21:34 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

after removing the automatic layout manager I can control the points
there the nodes are placed. My question is therefore solved.

Best regards, Lars
Re: [zest] Network with pre-defined coordinates [message #248238 is a reply to message #247620] Fri, 10 April 2009 06:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Thanks Lars,

note, a user can likely still drag a node. Is this a problem for you?

cheers,
ian
Lars Vogel wrote:
> Hi,
>
> after removing the automatic layout manager I can control the points
> there the nodes are placed. My question is therefore solved.
>
> Best regards, Lars
Re: [zest] Network with pre-defined coordinates [message #249250 is a reply to message #248238] Thu, 11 June 2009 21:58 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Ian,

Thank you for the answer. No dragging a node is actually I very nice
feature.

Best regards, Lars

Ian Bull wrote:
> Thanks Lars,
>
> note, a user can likely still drag a node. Is this a problem for you?
>
> cheers,
> ian
> Lars Vogel wrote:
>> Hi,
>>
>> after removing the automatic layout manager I can control the points
>> there the nodes are placed. My question is therefore solved.
>>
>> Best regards, Lars
Previous Topic:Zoom in time too long
Next Topic:going from a create request directly to a direct edit
Goto Forum:
  


Current Time: Thu Nov 21 15:31:04 GMT 2024

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

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

Back to the top