repainting sometimes missed after panning in JMapPane
-----------------------------------------------------
Key: GEOT-2798
URL: http://jira.codehaus.org/browse/GEOT-2798
Project: GeoTools
Issue Type: Bug
Affects Versions: 2.6.0
Reporter: Michael Bedward
Assignee: Michael Bedward
Priority: Minor
A user reported this problem via email...
Hello Michael,
I had problems with repainting map when using pan tool on JMapPane.
Problem was that image is not repainted always after moving. I was free
to experiment little with code in PanTool and add little change in
onMouseReleased() method:
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
getMapPane().repaint();
}
});
After that change i noticed that map is always repainted properly.
I tried to isolate when map repainting problem happens. I think that it is when
i zoom on the map and show all features with rich styling. What i am pretty
sure is
that it happens in situations when it is needed more time to GTRenderer to
render map.
I am not quite sure either why that fix my issue but i am tested it and it
works. After sheduling
repaint i never got situation that map is not repainted properly. Without that
i got sometimes
map with blank regions and when i minimize-maximize main frame i got map
repainted.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel