git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'Jalview-BH/JAL-3026-JAL-3063-JAXB' of https://source.jalview.org/git...
[jalview.git]
/
src
/
jalview
/
schemes
/
FollowerColourScheme.java
diff --git
a/src/jalview/schemes/FollowerColourScheme.java
b/src/jalview/schemes/FollowerColourScheme.java
index
0dcf960
..
57c19e5
100644
(file)
--- a/
src/jalview/schemes/FollowerColourScheme.java
+++ b/
src/jalview/schemes/FollowerColourScheme.java
@@
-20,8
+20,11
@@
*/
package jalview.schemes;
*/
package jalview.schemes;
-import jalview.analysis.Conservation;
-import jalview.analysis.Profile;
+import jalview.datamodel.AnnotatedCollectionI;
+import jalview.datamodel.SequenceCollectionI;
+import jalview.datamodel.SequenceI;
+
+import java.util.Map;
/**
* Colourscheme that takes its colours from some other colourscheme
/**
* Colourscheme that takes its colours from some other colourscheme
@@
-32,7
+35,7
@@
import jalview.analysis.Profile;
public class FollowerColourScheme extends ResidueColourScheme
{
public class FollowerColourScheme extends ResidueColourScheme
{
- protected ColourSchemeI colourScheme;
+ private ColourSchemeI colourScheme;
public ColourSchemeI getBaseColour()
{
public ColourSchemeI getBaseColour()
{
@@
-40,30
+43,30
@@
public class FollowerColourScheme extends ResidueColourScheme
}
@Override
}
@Override
- public void setConsensus(Profile[] consensus)
+ public String getSchemeName()
{
{
- if (colourScheme != null)
- {
- colourScheme.setConsensus(consensus);
- }
+ return "Follower";
}
}
+ /**
+ * Returns a new instance of this colour scheme with which the given data may
+ * be coloured
+ */
@Override
@Override
- public void setConservation(Conservation cons)
+ public ColourSchemeI getInstance(AnnotatedCollectionI coll,
+ Map<SequenceI, SequenceCollectionI> hrs)
{
{
- if (colourScheme != null)
- {
- colourScheme.setConservation(cons);
- }
+ return new FollowerColourScheme();
}
}
- @Override
- public void setConservationInc(int i)
+ protected ColourSchemeI getColourScheme()
+ {
+ return colourScheme;
+ }
+
+ protected void setColourScheme(ColourSchemeI colourScheme)
{
{
- if (colourScheme != null)
- {
- colourScheme.setConservationInc(i);
- }
+ this.colourScheme = colourScheme;
}
}
}
}