Hi Christopher,

  I don't understand why you need special access Layerable through
PlugInContext.  Can't you just use:
plugInContext.getLayerManager() to get there?

regards,
Larry

On Wed, Jul 23, 2008 at 11:02 AM, Sunburned Surveyor <
[EMAIL PROTECTED]> wrote:

> I can't say for sure just yet, but I think rewriting TinLayer to
> extend Layer is the wrong way to go. Getting you access to Layerable's
> trough the PlugInContext shouldn't be too hard, if the functionality
> isn't there already.
>
> Let's see if the others have comments. If not, I'll take a look at the
> PlugInContext and LayerManager class today on my lunch break and will
> get back to you with some ideas.
>
> Christopher wrote: "but then I still have to deal with all the display
> code that expects Layers."
>
> Can you give me some ideas of what you are talking about? It doesn't
> do much good to have a Layerable class if it is a pain-in-the-rear to
> add Layerable implementations. So your frustrations may be a clue that
> we need to look more closely at the way the Layerable interface
> interacts with the rest of the core.
>
> Maybe Martin Davis remembers the inent of the Layerable interface and
> could share any thoughts he has.
>
> The Sunburned Surveyor
>
> On Wed, Jul 23, 2008 at 8:16 AM, Christopher <[EMAIL PROTECTED]>
> wrote:
> > The biggest question I have now is if I should rewrite TinLayer to extend
> Layer instead of just implementing Layerable. For the life of me I can't
> figure out how to access non-Layer Layerables from a PlugInContext. This is
> necessary functionality that I need in order to implement TIN analysis
> functions (ie contour lines, watersheds, etc). It might be easier to
> slightly change the JUMP core to allow access to Layerables through
> PlugInContext than to rewrite TinLayer to extend Layer, but then I still
> have to deal with all the display code that expects Layers. The biggest
> problem with rewriting TinLayer is that I'll have to fake the existence of
> Features and their Geometries.
> >
> > Any hints?
> >
> > --Christopher
> >
> >
> > --- On Wed, 7/23/08, Sunburned Surveyor <[EMAIL PROTECTED]>
> wrote:
> >
> >> From: Sunburned Surveyor <[EMAIL PROTECTED]>
> >> Subject: Re: [JPP-Devel] Bunch of questions (mostly UI based)
> >> To: "OpenJump develop and use" <jump-pilot-devel@lists.sourceforge.net>
> >> Date: Wednesday, July 23, 2008, 7:13 AM
> >> Christopher,
> >>
> >> I agree with Michael's answers. Do you still have
> >> questions after
> >> reading his e-mail?
> >>
> >> I believe the class that manages the display of layers is
> >> LayerNamePanel.
> >>
> >> The Sunburned Surveyor
> >>
> >
> >
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>



-- 
http://amusingprogrammer.blogspot.com/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to