[Biojava-l] Disabling SequencePanel updates
mark.schreiber at novartis.com
mark.schreiber at novartis.com
Thu Oct 13 21:12:18 EDT 2005
I'm no expert on the GUI classes but your last suggestion sounds
reasonable.
Set the sequence and let people view it while running a search on a copy
of the sequence and then when the features have all been added you can
swap the sequences and update the display.
It's not elegant and there may be a better way.
- Mark
Joel Peter William Pitt <joel.pitt at gmail.com>
Sent by: biojava-l-bounces at portal.open-bio.org
10/13/2005 09:46 AM
To: biojava-l at biojava.org
cc: (bcc: Mark Schreiber/GP/Novartis)
Subject: [Biojava-l] Disabling SequencePanel updates
Hi All,
I'm trying to develop a GUI based sequence analysis tool.
I have a SequencePanel displaying features that are found by a seperate
thread. Within this thread are calls to Sequence.createFeature when an
appropriate match is found - my problem is that SequencePanel listens for
all changes to a sequence and there is no way (that I know of) to disable
this.
The reason this is annoying is because I would like allow a user to still
view the sequence while waiting for the search to complete. I can push
events to the Swing EventQueue that add features, but this drastically
slows
down the search due to the number of matches found - I would rather just
fire a ChangeEvent once the search has completed.
I thought I could override the setSequence method in a subclass of
SequencePanel and not assign changeListeners, but then the other methods
of
SequencePanel won't have access to the sequence.
Alternatively I could make a copy of the sequence for viewing and one for
searching on.
Can anyone suggest the best way to go about this?
Thanks,
Joel
_______________________________________________
Biojava-l mailing list - Biojava-l at biojava.org
http://biojava.org/mailman/listinfo/biojava-l
More information about the Biojava-l
mailing list