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
JAL-4235 JAL-3599 Try and report Eclipse Product Version for jalviewjsTranspile....
[jalview.git]
/
src
/
jalview
/
schemes
/
FollowerColourScheme.java
diff --git
a/src/jalview/schemes/FollowerColourScheme.java
b/src/jalview/schemes/FollowerColourScheme.java
index
aaa36f3
..
24b7713
100644
(file)
--- a/
src/jalview/schemes/FollowerColourScheme.java
+++ b/
src/jalview/schemes/FollowerColourScheme.java
@@
-20,8
+20,8
@@
*/
package jalview.schemes;
*/
package jalview.schemes;
-import jalview.analysis.Conservation;
-import jalview.datamodel.ProfilesI;
+import jalview.api.AlignViewportI;
+import jalview.datamodel.AnnotatedCollectionI;
/**
* Colourscheme that takes its colours from some other colourscheme
/**
* Colourscheme that takes its colours from some other colourscheme
@@
-32,7
+32,7
@@
import jalview.datamodel.ProfilesI;
public class FollowerColourScheme extends ResidueColourScheme
{
public class FollowerColourScheme extends ResidueColourScheme
{
- protected ColourSchemeI colourScheme;
+ private ColourSchemeI colourScheme;
public ColourSchemeI getBaseColour()
{
public ColourSchemeI getBaseColour()
{
@@
-40,36
+40,30
@@
public class FollowerColourScheme extends ResidueColourScheme
}
@Override
}
@Override
- public void setConsensus(ProfilesI 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(AlignViewportI view,
+ AnnotatedCollectionI coll)
{
{
- if (colourScheme != null)
- {
- colourScheme.setConservation(cons);
- }
+ return new FollowerColourScheme();
}
}
- @Override
- public void setConservationInc(int i)
+ protected ColourSchemeI getColourScheme()
{
{
- if (colourScheme != null)
- {
- colourScheme.setConservationInc(i);
- }
+ return colourScheme;
}
}
- @Override
- public String getSchemeName()
+ protected void setColourScheme(ColourSchemeI colourScheme)
{
{
- return "Follower";
+ this.colourScheme = colourScheme;
}
}
}
}