I didn't see anyone else respond so I'll offer my own two cents.
I had to do some work with JMapPane about a year back.
If you are going to do any serious development with JMapPane you are
probably going to have to bite the bullet and make your own version of
this class. I believe its officially unsupported.
I don't think you'll find a series of flags that control the MapPane's
behavior. Its more of a very good proof of concept, what you see is
what you get.
The issue I was having was that I couldn't get JMapPane to launch
directly to a specific area of interest - it would always initially show
the entire context, even when I set the context before drawing.
I ended up making my own version of the class - refactoring the code so
that all the places where the mapArea was being set went through a
setter. With a couple logging statements and some conditional logic in
the setter I had a place in the setter method to set a breakpoint at.
Looking at the stack made it pretty obvious where my values where being
overwritten. From there it is a short jump of logic to identify the
conditions under which I didn't want the context overwritten and adding
in a conditional.
You might try something similar, at least to figure out where the
behavior of JMapPane differs from what you expect/desire.
On 4/1/2010 6:58 AM, David Abdurachmanov wrote:
Hello,
Is it possible to turn off the reseting to full extent on resize?
Doesn't look that there would be any kind of option for that. Tried
adding MapPaneListener and saving display area and later on resized
event changing it back, but wasn't successfully. Any hints how you
accomplish this? I want MapPane to stay on the same area after resizing.
Thanks,
David
------------------------------------------------------------------------
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up
now. <https://signup.live.com/signup.aspx?id=60969>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.791 / Virus Database: 271.1.1/2782 - Release Date: 03/31/10
11:32:00
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users