Re: [OpenMap Users] Distance Mouse Mode - Redraw issue.

From: Don Dietrick <>
Date: Tue, 22 May 2007 14:10:58 -0400

Hi Diane,

I'm not sure why it's happening, whether its a problem with the
coordinates for the XOR rendering or a JDK problem. I just see
holdover pixels at the end of a multi-line segment, but I'm running
Mac OS X.

It might be worth it to have the mouse mode buffer the current
MapBean image and repaint that buffer when the mouse mode is reset.
I'll keep that in mind the next time I'm in that code.


- Don

On May 20, 2007, at 7:22 AM, <>
<> wrote:

> I have a problem with my application, in that when using the
> DistanceMouseMode, the lines do not get repainted correctly and
> appear as little dotted segments on the map. (in otherwords all of
> the line is not redrawn) Until a repaint is forced, these lines
> stay on the map.
> I create a distance line (angled seems to cause the problem) that
> has several segments. When I move the mouse to the next location,
> some of the line stays on the map appearing as dots. It seems to
> be a problem in the paintLine method of the DistanceMouseMode where
> the XOR is occuring.
> I can also get this same problem to occur in the sampe OpenMap
> Application (4.6.3 and beta 4.6.4) by doing the following.
> Use the DistanceMouseMode.
> Create several angled line segments.
> Move a window over top of the map - (In windows - use alt tab)
> Go back to openmap (alt-tab again)
> Double Click to "erase" distance line
> Some pieces of the line segment are not erased (cause appearance of
> little dots)
> Any hints on why this is happening.
> DIane

Don Dietrick,
BBN Technologies, Cambridge, MA

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue May 22 2007 - 14:11:32 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT