[Biojava-l] drawing SequenceRenderer on top of one another
Matthew Pocock
matthew_pocock@yahoo.co.uk
Fri, 22 Mar 2002 12:38:15 -0000
Eugh! What a nasty API!. Could we make OverlayRenderer purely overlaying,
and discard the wrapper class completely? If you want a mixture of overlayed
and multiple line rendering behavior, why not add multiple renderers (some
of them overlay renderers with a list of child renderers) to a
multi-line-renderer? This keeps the one-behavior-one-class philosophy of the
gui packages intact.
(not wanting to break the 1.2* series too badly...)
Matthew
> On Fri, 22 Mar 2002, pootle monster wrote:
>
> >
> > I am having trouble drawing SequenceRenderer Objects on top of one
another
> >
> > It is easy drawing each SequenceRenderer seperately with
> > MultiLineRenderer myLineRenderer = new MultiLineRenderer();
> > then adding each SequenceRenderer using;
> > myLineRenderer.addRenderer(mySequenceRenderer);
> >
> > but I want all of my SequenceRenderers to draw on the same line
> > I think the OverlayRendererWrapper seems the right thing but cant see
how to
> > add all my diff SequenceRenderers
> >
> > OverlayRendererWrapper oneLineRenderer = new OverlayRendererWrapper();
> > oneLineRenderer.addRenderer(mySequenceRenderer); - there seems to be no
> > method to do this?
> >
> If you wrap your renderer with OverlapRendererWrapper, the container will
> not advance drawing after drawing your strip. This allows to to overlay,
> just wrap everything but the last thing you want overlaid with the
> wrapper.
>
> Regards,
> David Huen
>
> _______________________________________________
> Biojava-l mailing list - Biojava-l@biojava.org
> http://biojava.org/mailman/listinfo/biojava-l