It appears that the default behavior of the InstallRendererPlugIn
class is to cycle trough all TaskFrames that are present in the
WorkbenchFrame adding its Renderer to the RenderingManager. (This
would take place for each extension of the Install RendererPlugIn
class, like the InstallGridRendererPlugIn and the
InstallScaleBarRendererPlugIn.)

It appears that JUMP already had a way to add custom Renderers, as
long as you didn't mind that it could only paint above or below
Layerable objects. The disadvantage of this system is that you
couldn't add custom renderers that could be selected for Layerable
objects.

This can be done with my pluggable rendering system. I'm not sure just
yet, but I think that I will be able to eliminate the
InstallRendererPlugIn class and its extensions, since you can now add
custom renderers using my pluggable rendering system.

One of my original challenges with the pluggable rendering system was
determining how I could add custom Renderer objects to each
RenderingManager via the existing plug-in system. I ended up avoiding
the existing plug-in system altogether because I didn't see a way to
do this. It looks like the JUMP wizards found a way to do this. Maybe
I need to mimic thir logic as it exists in the InstallRendererPlugIn
class. I will consider this as well.

The Sunburned Surveyor

On 6/6/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> I managed to find the answer to this question using the "open call
> hierarchy" tool in Eclipse on the constructor of the GridRenderer
> class. It looks like there is a plug-in that performs the isntallation
> of the GridRenderer.
>
> This adds a layer of complexity that I wasn't prepared for. I'll have
> to study this class so I can figure out how to incoporate it into my
> pluggable rendering system.
>
> Just when I thought I was close to getting this thing finished. :]
>
> I imagine the same thing is done for the ScaleBarRenderer.
>
> Thanks,
>
> The Sunburned Surveyor
>
> On 6/6/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> > I noticed that only 4 of the 6 special renderers for the Strings
> > stored in the list of ContentIDs are added in the contructor of the
> > RenderingManager class. The GridRenderer and the ScaleBarRenderer are
> > not added in this constructor.
> >
> > Does anyone know where and when they are added to the
> > RenderingManager? I find it odd that they aren't added in the
> > constructor.
> >
> > I note that the ScaleBarPlugIn class adds the String to the list of
> > ContentIDs in its execute method, but does not add the
> > ScaleBarRenderer itself.
> >
> > Thanks for the help with this.
> >
> > The Sunburned Surveyor
> >
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to