[Biojava-dev] About the six frame renderer again.

Matthew Pocock matthew_pocock at yahoo.co.uk
Wed Sep 24 06:03:23 EDT 2003


Hi,

I recently added code for optimizing rendering to the current clip. If
you get a recent biojava (preferably source-code - try cvs or the
nightly builds), then you will see some new-in-1.4 code in the
.gui.sequence package. Take a look at SymbolSequenceREnderer, arround
line #117 for how to get the minimally visible range.

Matthew

hywang at scbit.org wrote:

> Hi,
> I have wrote a renderer for six frame view based on your
> SixFrameRenderer, it can render a frame with the input
> parameter:
> moduloFrame
> which could only be 0,1,2 for the different start base of translation.
> strand
> which stands for the positive or negtive strand.
> I can get the expected effect of six lines of Amino arrays in zoom in
> mode,
> and different sticks drawed for stop codon in zoom out mode.
> But if a sequence is very long, for example about 100k,
> the scroll action in zoom in mode will be a bit slow.
> I think that is probably because of the wholy repainting all the amino
> strings, so I have tried getclip() function in the paint() method
> ,but the improvement seemed to be not a satisfaction.
> Any help would be greatly appreciated and would stop me pulling
> anymore hair out!
> Thanks.
> Best Wishes !
> Hywang





More information about the biojava-dev mailing list