[Biojava-l] Proposal for some changes in the SequencePanel class.

2002-05-13 Thread Kalle Näslund
HI! I have a proposal for a change to the org.biojava.bio.gui.sequence.SequencePanel class. Currently the SequencePanel class only accepts objects of type Sequence. In some situations the need to visualize SymboLists arise, for example when you want to display alignments that are in the form

RE: [Biojava-l] Proposal for some changes in the SequencePanel class.

2002-05-13 Thread Cox, Greg
Hello Kalle, This would create some problems for us. Since alignments aren't sequences, I'd rather see a seperate class, AlignmentPanel, than overload SequencePanel. Off the cuff, I'd suggest pulling the common functions up to a new class, AbstractPanel, and have both inherit from that. Is the

Re: [Biojava-l] Proposal for some changes in the SequencePanel class.

2002-05-13 Thread Matthew Pocock
Hi Greg, Both Sequence and Alignment inherit from SymbolList. If the sequence renderer JComponent swing classes were changed to accept SymbolList rather than Sequence, we can leave SymbolRenderContext as-is and all the renderers should continue to work without writing any new code. It is the

Re: [Biojava-l] Proposal for some changes in the SequencePanel class.

2002-05-13 Thread Keith James
> "Kalle" == Kalle Näslund <[EMAIL PROTECTED]> writes: [..] Kalle> To be a bit more precise, the changes would be the Kalle> following: Kalle> 1. Move all methods from SequenceRenderContext to an inner Kalle> class 2. Make SequencePanel accept SymbolLists by chaning Kall

Re: [Biojava-l] Proposal for some changes in the SequencePanel class.

2002-05-13 Thread Kalle Näslund
Keith James wrote: >>"Kalle" == Kalle Näslund <[EMAIL PROTECTED]> writes: >> > >[..] > >Kalle> To be a bit more precise, the changes would be the >Kalle> following: > >Kalle> 1. Move all methods from SequenceRenderContext to an inner >Kalle> class 2. Make SequencePanel acc