Hello Dave, You'll want to modify the JMapPane.paintComponent method, and possibly also the onRenderingCompleted method.
Hope this helps, Michael On 20 April 2011 15:30, dscerri <[email protected]> wrote: > Hi, > > I am using the imagemosaic-jdbc plugin, with some large image files which > are being displayed in a JMapPane. I have noticed that when repainting is > required (due to resizing etc) the rendering seems to follow this process: > > (I haven't been able to locate this process in the code, so its purely > speculation based on experimentation.) > 1. Clear dirty area of screen > 2. Submit request to DB in a separate thread > 3. When request is returned, paint the cleared area of screen. > > This means that when the request takes a non-trivial amount of time, the map > pane changes to white for a period and then back to the image. IMO, it would > be better to not clear the dirty area until the new image is ready to be > painted, so there would not be a white period. > > Is this possible to implement? Is my guessing of how the rendering is done > correct? Could someone point me to the appropriate code so I can at least > implement this for my own purposes? > > Thanks very much for your help, it is much appreciated. > > Regards, > > Dave > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/JMapPane-gets-cleared-too-early-tp6289668p6289668.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
