Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Lines disappearing on grid
Lines disappearing on grid [message #158307] Wed, 17 November 2004 13:11 Go to next message
Eclipse UserFriend
Originally posted by: andreas.rummler.tu-ilmenau.de

Dear Newsgroup,

I've got quite a strange problem, where I'm helpless in where to search
for the mistake.

In one of my GEF editors a user may paint symbols for an electronic
circuit editor. These symbols consist of several geometric shapes.
The editor includes a layer which paints the grid, for drawing the
shapes RectangleFigure, Ellipse and so on are used. For drawing lines
the a Polyline figure is used. Everything works fine except for lines
which are situated exactly on the grid. On a 10/10 grid a line from
(10,10) to (50,50) is visible, but a line from (10,10) to (50,10) is
not (same for a line from (10,10) to (10,50)).

It seems, that the grid layer is on top of the layer which contains the
lines and a line "on the grid" becomes invisible. The grid works with
all other figures.

As I already said - I don't know where to search for the reason of this
kind of behaviour.

Best regards,

Andreas Rummler


--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
+ Andreas Rummler +
+ Technical University of Ilmenau, Germany (__) +
+ Department Of Electronic Circuits & Systems (oo) +
+ \/-------\ +
+ MAIL: mailto:arummler@acm.org || | \ +
+ MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
+ WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
+ PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
Re: Lines disappearing on grid [message #158410 is a reply to message #158307] Thu, 18 November 2004 01:12 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Are you using XOR?

"Andreas Rummler" <andreas.rummler@tu-ilmenau.de> wrote in message
news:cnfimo$76m$1@www.eclipse.org...
>
> Dear Newsgroup,
>
> I've got quite a strange problem, where I'm helpless in where to search
> for the mistake.
>
> In one of my GEF editors a user may paint symbols for an electronic
> circuit editor. These symbols consist of several geometric shapes.
> The editor includes a layer which paints the grid, for drawing the
> shapes RectangleFigure, Ellipse and so on are used. For drawing lines
> the a Polyline figure is used. Everything works fine except for lines
> which are situated exactly on the grid. On a 10/10 grid a line from
> (10,10) to (50,50) is visible, but a line from (10,10) to (50,10) is
> not (same for a line from (10,10) to (10,50)).
>
> It seems, that the grid layer is on top of the layer which contains the
> lines and a line "on the grid" becomes invisible. The grid works with
> all other figures.
>
> As I already said - I don't know where to search for the reason of this
> kind of behaviour.
>
> Best regards,
>
> Andreas Rummler
>
>
> --
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
> + Andreas Rummler +
> + Technical University of Ilmenau, Germany (__) +
> + Department Of Electronic Circuits & Systems (oo) +
> + \/-------\ +
> + MAIL: mailto:arummler@acm.org || | \ +
> + MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
> + WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
> + PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs and the universe trying
> to produce bigger and better idiots. So far, the universe is winning."
> Richard Cook
>
Re: Lines disappearing on grid [message #158433 is a reply to message #158410] Thu, 18 November 2004 08:27 Go to previous message
Eclipse UserFriend
Originally posted by: andreas.rummler.tu-ilmenau.de

Pratik Shah schrieb:

> Are you using XOR?

I've found the issue. The bounds of a Polyline from A to B are set to
the exact coordinates of the line. Expanding the Polyline by 1 unit
makes vertical and horizontal lines visible.

Best regards,


Andreas Rummler

--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
+ Andreas Rummler +
+ Technical University of Ilmenau, Germany (__) +
+ Department Of Electronic Circuits & Systems (oo) +
+ \/-------\ +
+ MAIL: mailto:arummler@acm.org || | \ +
+ MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
+ WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
+ PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
Previous Topic:How can I restrict the automatic scrolling with given height and width?
Next Topic:SelectionTool - something like a "selection changed" event/request?
Goto Forum:
  


Current Time: Fri Apr 26 19:58:12 GMT 2024

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

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

Back to the top