Hi,
I drawing my own shapes on JMapPane, when main map was rendered. I am
doing through MapPaneListener.onRenderingStopped, like this:
public void onRenderingStopped(MapPaneEvent ev) {
Graphics2D g = ((Graphics2D) mapPane.getGraphics());
g.setColor(color);
// get coords
g.drawPolyline(coords[0], coords[1], coords[0].length);
}
The problem is - who can I get all thing to repaint (I mean my shapes)?
If I say mapPane.repaint(), at the end of onRenderingStopped - this will
put me at endlless mapPane.repaint() - onRenderingStopped loop.
So, how could I draw few rectangles on map, when it was rendered?
Thanks,
Sergey
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users