Yeah, I had thought of that. I wondered how it would work if we had
layers that implemented a SimpleFeatureRenderer that doesn't do image
caching.

That might mess things up a bit.

I'll chew on it some more.

Thanks again.

Landon

On 11/10/06, Jonathan Aquino <[EMAIL PROTECTED]> wrote:
> > I looked at the source code today. I am curious, does the
> > RenderingManager use ContentIDs to identify the type Renderer
> > that should be used with each layer?
>
> Yup - a content ID is just the name of the transparent image - either a
> layer name, or "SELECTION_HANDLES", or "SCALE_BAR", etc.
>
> > You mentioned that "the LayerViewPanel's RenderingManager
> > maintains several transparent images (one for each layer,
> > then one for the yellow selection handles, and maybe a couple more)."
> >
> > I think this is the ImageCachingRenderer and
> > ImageCachingFeatureCollectionRenderer classes.
>
> Yep
>
> > I may just have to render the graphics to an offscreen image
> > after the graphics have been painted to the LayerViewPanel.
> > The downside of this is that I'll have to paint the grpahics
> > twice. I really wanted to snag the image that was already
> > generated by the Java2D framework and painted on the screen.
>
> Yeah you might be able to grab that image from the "cache" in the
> ImageCachingRenderers. Or more precisely, images (plural) - one for each
> layer.
>
> Jon
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Sunburned Surveyor
> > Sent: Friday, November 10, 2006 8:44 PM
> > To: List for discussion of JPP development and use.
> > Subject: Re: [JPP-Devel] Snagging a "snapshot" of the LayerViewPanel
> >
> >
> > "Or you could adopt the strategy that several CursorTools use
> > and simply draw your lines in XOR."
> >
> > Yeah, but that would be to easy. :]
> >
> > Thanks for taking the time to respond Jon. I'm actually
> > thinking beyond CursorTools, and exploring ideas for drawing
> > temporary graphics on the LayerViewPanel. I guess I'm wanting
> > to get better acquainted with OpenJUMP's rendering system.
> >
> > I acutally reviewed an e-mail from you from many months ago.
> > I had asked some questions about JUMP's rendering system. You
> > outlined the basic steps in the rendering process. I wasn't
> > able to understand it from the source code at the time. At
> > any rate, I found your e-mail still very helpful, and now
> > that I've become more adept at reading other's Java code I
> > think I'm getting a fuzzy picture of how OpenJUMP's rendering works.
> >
> > I looked at the source code today. I am curious, does the
> > RenderingManager use ContentIDs to identify the type Renderer
> > that should be used with each layer? I know it has been a
> > long time for you. If you don't remember I'll look at the
> > code some more.
> >
> > You mentioned that "the LayerViewPanel's RenderingManager
> > maintains several transparent images (one for each layer,
> > then one for the yellow selection handles, and maybe a couple more)."
> >
> > I think this is the ImageCachingRenderer and
> > ImageCachingFeatureCollectionRenderer classes.
> >
> > I may just have to render the graphics to an offscreen image
> > after the graphics have been painted to the LayerViewPanel.
> > The downside of this is that I'll have to paint the grpahics
> > twice. I really wanted to snag the image that was already
> > generated by the Java2D framework and painted on the screen.
> >
> > I'll do some more digging. I might post a question on the
> > uDig mailing list, and on a Java forum I use.
> >
> > Thanks again for all of the help Jon. I'm really glad you
> > keep a half an ear on our list still. :] I hope you are doing well.
> >
> > The Sunburned Surveyor
> >
> > On 11/10/06, Jonathan Aquino <[EMAIL PROTECTED]> wrote:
> > > 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 Jump-pilot-devel@lists.sourceforge.net
> > > 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
> > Jump-pilot-devel@lists.sourceforge.net
> > 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 Jump-pilot-devel@lists.sourceforge.net
> 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
> Jump-pilot-devel@lists.sourceforge.net
> 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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to