Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » negative coordinates
negative coordinates [message #248695] Mon, 27 April 2009 13:25 Go to next message
Carsten Spieker is currently offline Carsten SpiekerFriend
Messages: 197
Registered: July 2009
Senior Member
Hi,

I
Re: negative coordinates [message #248703 is a reply to message #248695] Mon, 27 April 2009 17:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cayla_sha.gmx.net

You could catch the event (the event that user moved element) and then
correct the coordinates, if they`re smaller than 0, like setting them to
0 or 1.

Carsten Spieker schrieb:
> Hi,
>
> IŽm still quite new to GEF editors.
>
> Is there any possibility to keep the user from creating an element in the
> negative coordinate area of the editor?
>
> Thanks and Greetz,
> Carsten
>
>
Re: negative coordinates [message #248713 is a reply to message #248703] Tue, 28 April 2009 06:24 Go to previous messageGo to next message
Carsten Spieker is currently offline Carsten SpiekerFriend
Messages: 197
Registered: July 2009
Senior Member
Hi,

thanks for that hint.
Now I have changed the edit policy which is checked when moving a child and
manipulate the target rectangle if x or y are <0.

Greetz,
Carsten


"Cayla Sha" <cayla_sha@gmx.net> schrieb im Newsbeitrag
news:gt4q4g$ptb$1@build.eclipse.org...
> You could catch the event (the event that user moved element) and then
> correct the coordinates, if they`re smaller than 0, like setting them to 0
> or 1.
>
> Carsten Spieker schrieb:
>> Hi,
>>
>> I
Re: negative coordinates [message #248753 is a reply to message #248695] Wed, 29 April 2009 16:45 Go to previous message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
If I understand your question correctly, you might want to use a root
edit part that is not free form.

That is, use ScalableRootEditPart instead of ScalableFreeformRootEditPart.

Regards,
Ben

Carsten Spieker wrote:
> Hi,
>
> I´m still quite new to GEF editors.
>
> Is there any possibility to keep the user from creating an element in the
> negative coordinate area of the editor?
>
> Thanks and Greetz,
> Carsten
>
>
Previous Topic:Node and Connection creation inconsistency?
Next Topic:probem with connection anchors when zoomed
Goto Forum:
  


Current Time: Thu Apr 25 09:00:23 GMT 2024

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

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

Back to the top