> I do all my work on the server-side so I cannot give you JPanel examples (I
> use JNCSFile.setView()). However, using setView() should do what you want.
> i.e. User performs some action (zoom, zoomBox, pan), the result is a call
> to setView. You just have to write all the mouse action code.

Thanks for the reply.  I looked at the Javadoc and it appears that the
parameters for JCNSFile.setView() are the same as JNCSRenderer.setView(),
which is what I'm using.  Perhaps you could help me understand the
function better with the following example...

If I were to call:

setView(nBands, nBandList, dWorldTLX, dWorldTLY,
        dWorldBRX, dWorldBRY, nWidth, nHeight);

What would be the correct way to call it again with a "zoom in"?  I tried
something like this:

setView(nBands, nBandList, dWorldTLX, dWorldTLY,
        dWorldBRX*2, dWorldBRY*2, nWidth, nHeight);

...but it doesn't seem to quite work (well, it gives the visual impression
of a zoom, but I couldn't understand why and I couldn't get it to zoom in
on the "center" of the image...that is, it would always zoom in on the
upper left side of the image).

Thanks,
-bryan

-----------------------------------------------------------

To make changes to your subscription, please visit our website, 
http://www.ermapper.com/technicl/ermapperl/index.htm

Reply via email to