[Biojava-l] drawing SequenceRenderer on top of one another

David Huen smh1008@cus.cam.ac.uk
Fri, 22 Mar 2002 11:49:44 +0000 (GMT)


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