Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [gef-dev] TrapRects and invisible Figs

gef
Discussion topic

Back to topic list

Re: [gef-dev] TrapRects and invisible Figs

Reply

Author Bob Tarling <bob dot tarling at ntlworld dot com>
Full name Bob Tarling <bob dot tarling at ntlworld dot com>
Date 2004-07-13 17:06:05 PDT
Message Thanks Nils

I've added this as issue 148
http://gef.tigris.or​g/issues/show_bug.cg​i?id=148

I'd recommend you add yourself to the cc list for this issue so you can see
how it progresses.

Feel free to enter any other issues you come across direct into the IZ
database. Makes it easier for us both to track.

Regards

Bob.

----- Original Message -----
From: "Nils Bandener" <nilsb at upb dot de>
To: <dev at gef dot tigris dot org>
Sent: Monday, July 12, 2004 5:35 PM
Subject: [gef-dev] TrapRects and invisible Figs


> Hi,
>
> For a project, I needed to use the Visible flag of FigNodes. However,
> GEF uses to display TrapRects even for FigNodes with the Visible flag
> set to false. This caused TrapRects showing up on the locations of
> invisible FigNodes which can be quite confusing.
>
> I modified the source of GEF 0.10.4 to honour the Visible flag while
> dragging FigNodes. The diffs are below.
>
> Bye
>
> Nils
>
> --- org/tigris/gef/base/​ModePlace.java 2004-06-05 20:54:24.000000000
+0200
> +++ org/tigris/gef/base/​ModePlace.java.new 2004-07-12
> 18:06:53.000000000 +0200
> @@ -196,6 +196,9 @@
> if(!(otherFig instanceof FigNode)) {
> continue;
> }
> + if (!otherFig.isVisible()) {
> + continue;
> + }
> if(otherFig.equals(_pers)) {
> continue;
> }
>
>
> --- org/tigris/gef/base/​ModeModify.java 2004-06-05 20:53:02.000000000
+0200
> +++ org/tigris/gef/base/​ModeModify.java.new 2004-07-12
> 17:59:20.000000000 +0200
> @@ -383,6 +383,10 @@
> continue;
> }
>
> + if(!otherFig.isVisible()) {
> + continue;
> + }
> +
> Rectangle trap = otherFig.getTrapRect();
> if(trap == null) {
> continue;
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe at gef dot tigris dot org
> For additional commands, e-mail: dev-help at gef dot tigris dot org
>


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at gef dot tigris dot org
For additional commands, e-mail: dev-help at gef dot tigris dot org

« Previous message in topic | 2 of 4 | Next message in topic »

Messages

Show all messages in topic

[gef-dev] TrapRects and invisible Figs Nils Bandener <nilsb at upb dot de> Nils Bandener <nilsb at upb dot de> 2004-07-12 09:35:57 PDT
     Re: [gef-dev] TrapRects and invisible Figs Bob Tarling <bob dot tarling at ntlworld dot com> Bob Tarling <bob dot tarling at ntlworld dot com> 2004-07-13 17:06:05 PDT
         Re: [gef-dev] TrapRects and invisible Figs Bob Tarling <bob dot tarling at ntlworld dot com> Bob Tarling <bob dot tarling at ntlworld dot com> 2004-07-14 15:46:49 PDT
             Re: [gef-dev] TrapRects and invisible Figs Nils Bandener <nilsb at upb dot de> Nils Bandener <nilsb at upb dot de> 2004-07-18 05:51:06 PDT
Messages per page: