X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Frenderer%2FResidueShader.java;h=8ecb2ad70669d3e6339cd211ebfe9a35a9ea8edf;hb=3eaeb80fba0225aa5c6123a4c512da569211dcfb;hp=3f5cd11e50ff4ee74c786960289111b3efdf8bae;hpb=424f6f03e8fb5e40cceca09fc8ffd72b41e3a9e4;p=jalview.git diff --git a/src/jalview/renderer/ResidueShader.java b/src/jalview/renderer/ResidueShader.java index 3f5cd11..8ecb2ad 100644 --- a/src/jalview/renderer/ResidueShader.java +++ b/src/jalview/renderer/ResidueShader.java @@ -47,7 +47,7 @@ public class ResidueShader implements ResidueShaderI private boolean conservationColouring; /* - * the phsyico-chemical property conservation scores for columns, with values + * the physico-chemical property conservation scores for columns, with values * 0-9, '+' (all properties conserved), '*' (residue fully conserved) or '-' (gap) * (may be null if colour by conservation is not selected) */ @@ -96,6 +96,20 @@ public class ResidueShader implements ResidueShaderI } /** + * Copy constructor + */ + public ResidueShader(ResidueShader rs) + { + this.colourScheme = rs.colourScheme; + this.consensus = rs.consensus; + this.conservation = rs.conservation; + this.conservationColouring = rs.conservationColouring; + this.conservationIncrement = rs.conservationIncrement; + this.ignoreGaps = rs.ignoreGaps; + this.pidThreshold = rs.pidThreshold; + } + + /** * @see jalview.renderer.ResidueShaderI#setConsensus(jalview.datamodel.ProfilesI) */ @Override