git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9d64429
)
Maintain feature order
author
amwaterhouse
<Andrew Waterhouse>
Wed, 5 Apr 2006 16:40:20 +0000
(16:40 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Wed, 5 Apr 2006 16:40:20 +0000
(16:40 +0000)
src/jalview/gui/Jalview2XML.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/Jalview2XML.java
b/src/jalview/gui/Jalview2XML.java
index
db60b8b
..
d652da2
100755
(executable)
--- a/
src/jalview/gui/Jalview2XML.java
+++ b/
src/jalview/gui/Jalview2XML.java
@@
-506,18
+506,18
@@
public class Jalview2XML
jalview.schemabinding.version2.FeatureSettings fs
\r
= new jalview.schemabinding.version2.FeatureSettings();
\r
\r
jalview.schemabinding.version2.FeatureSettings fs
\r
= new jalview.schemabinding.version2.FeatureSettings();
\r
\r
- Enumeration e = af.alignPanel.seqPanel.seqCanvas.getFeatureRenderer().featureColours.keys();
\r
- while (e.hasMoreElements())
\r
+ String [] renderOrder =
\r
+ af.alignPanel.seqPanel.seqCanvas.getFeatureRenderer().renderOrder;
\r
+ for(int ro=0; ro<renderOrder.length; ro++)
\r
{
\r
{
\r
- String type = e.nextElement().toString();
\r
Setting setting = new Setting();
\r
Setting setting = new Setting();
\r
- setting.setType(type);
\r
+ setting.setType(renderOrder[ro]);
\r
setting.setColour(
\r
setting.setColour(
\r
- af.alignPanel.seqPanel.seqCanvas.getFeatureRenderer().getColour(type).getRGB()
\r
+ af.alignPanel.seqPanel.seqCanvas.getFeatureRenderer().getColour(renderOrder[ro]).getRGB()
\r
);
\r
\r
setting.setDisplay(
\r
);
\r
\r
setting.setDisplay(
\r
- av.featuresDisplayed.containsKey(type)
\r
+ av.featuresDisplayed.containsKey(renderOrder[ro])
\r
);
\r
\r
fs.addSetting(setting);
\r
);
\r
\r
fs.addSetting(setting);
\r