*/
package jalview.schemes;
-import java.awt.*;
-import java.util.Hashtable;
-import java.util.Map;
-
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceCollectionI;
import jalview.datamodel.SequenceI;
+import java.awt.Color;
+import java.util.Hashtable;
+import java.util.Map;
+
/**
* Looks at the information computed from an RNA Stockholm format file on the
* secondary structure of the alignment. Extracts the information on the
alignmentChanged(alignment, null);
}
+ /**
+ * clones colour settings and annotation row data
+ *
+ * @param rnaHelicesColour
+ */
+ public RNAHelicesColour(RNAHelicesColour rnaHelicesColour)
+ {
+ super(ResidueProperties.nucleotideIndex);
+ helixcolorhash = rnaHelicesColour.helixcolorhash;
+ annotation = rnaHelicesColour.annotation;
+ refresh();
+ }
+
@Override
public void alignmentChanged(AnnotatedCollectionI alignment,
Map<SequenceI, SequenceCollectionI> hiddenReps)
// currentColour);
return currentColour;
}
+
+ @Override
+ public ColourSchemeI applyTo(AnnotatedCollectionI sg,
+ Map<SequenceI, SequenceCollectionI> hiddenRepSequences)
+ {
+ return new RNAHelicesColour(this);
+ }
}