I think there's a "Copy Image" menu in there somewhere. Or was.
The LayerViewPanel's RenderingManager maintains several transparent images
(one for each layer, then one for the yellow selection handles, and maybe a
couple more). So you could add another image ("Renderable" I think they're
called), or do it manually using the same technique.
Or you could adopt the strategy that several CursorTools use and simply draw
your lines in XOR.
Jon
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Sunburned Surveyor
> Sent: Friday, November 10, 2006 2:26 PM
> To: JUMP Developers; List for discussion of JPP development and use.
> Subject: [JPP-Devel] Snagging a "snapshot" of the LayerViewPanel
>
>
> I'm stuck on a small challenge with JUMP/OpenJUMP and I was
> hoping one of you guys might be able to save me some time
> beating my head on the concrete.
>
> What is the quickest way to snag a "snapshot" image of the
> contents of the LayerViewPanel? I looked at the
> LayerViewPanel class, and both of its superclasses Component
> and JComponent, but I couldn't figure out how to do this. (I
> don't want to render all of the geometries to an offscreen
> image. Instead I'd like to snag the image that has already
> been computed to paint the image on the screen in the program.)
>
> Also, is there a way to repaint the LayerViewPanel by passing
> it an image?
>
> I'm working on a way to speed up the rendering of the
> LayerViewPanel when the user is using a CursorTool. I'll post
> my thoughts to the OpenJUMP blog when I find an anwer to this
> question.
>
> Thanks,
>
> The Sunburned Surveyor
>
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web
> services, security? Get stuff done quickly with
> pre-integrated technology to make your job easier Download
> IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
dat=121642
_______________________________________________
Jump-pilot-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel