Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: LabelledSequenceRenderer does not work with TranslatedSequenceRenderer,: msg#00048

java.bio.general

Subject: Re: LabelledSequenceRenderer does not work with TranslatedSequenceRenderer, Newbie

On Thursday 25 Mar 2004 5:26 pm, Keith James wrote:
> >>>>> "Kalle" == Kalle Näslund <kalle.naslund@xxxxxxxxxxxx> writes:
>
> [...]
>
> Kalle> Also, can anyone remind me why we have several Panel
> Kalle> implementations please ? shouldnt it be very nice to have
> Kalle> one single implementation, that supports the unique
> Kalle> features of both SequencePanel and TranslatedSequencePanel
> Kalle> ?
>
> Long story...
>
> This came about because SequencePanel had two problems:
>
> 1. It will by default render a huge sequence in a single huge
> coordinate space which leads to floating point errors in marking
> tics/points at the far end of the sequence.
>
> To solve this a hack was put in to translate the drawing
> coordinates to ~0 before drawing. However that broke rendering to
> any Graphics2D derived from a BufferedImage where it produced an
> un-renderable region between 0 and the offset (which was 50 pixels
> wide, if I remember)
>
> 2. It was far too slow with available sequence/feature renderers.
>
>
> So I wrote TranslatedSequencePanel which solves the first problem
> without using the offset hack. Instead of placing a huge virtual
> rendering area in a ScrollPane, it clips a window of sequence to
> render and runs the window along the sequence. Therefore you are
> always drawing from 0, even at base 100,000,001 of the sequence.
>
> As a nice side-effect, it also turned out to be 5-10x faster at
> rendering with the current sequence/feature renderers.
>
> But people were still using the SequencePanel in their client code, so
> I didn't want to remove it.
>
Let's go to TranslatedSequencePanel then. It seems the sane way to go and
it is good at high coord spaces. The only way this is going to happen is
if we tag it "DEPRECATED" immediately and shoot it at 1.4 final.

David Huen


_______________________________________________
Biojava-l mailing list - Biojava-l@xxxxxxxxxxx
http://biojava.org/mailman/listinfo/biojava-l



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo