import jalview.datamodel.GraphLine;
import jalview.datamodel.SequenceCollectionI;
import jalview.datamodel.SequenceI;
+import jalview.renderer.AnnotationRenderer;
+import jalview.util.Comparison;
import java.awt.Color;
import java.util.IdentityHashMap;
if (annotation.annotations != null
&& j < annotation.annotations.length
&& annotation.annotations[j] != null
- && !jalview.util.Comparison.isGap(c))
+ && !Comparison.isGap(c))
{
Annotation aj = annotation.annotations[j];
// 'use original colours' => colourScheme != null
}
else
{
- currentColour = annotation.annotations[j].secondaryStructure == 'H' ? jalview.renderer.AnnotationRenderer.HELIX_COLOUR
- : annotation.annotations[j].secondaryStructure == 'E' ? jalview.renderer.AnnotationRenderer.SHEET_COLOUR
- : jalview.renderer.AnnotationRenderer.STEM_COLOUR;
+ currentColour = annotation.annotations[j].secondaryStructure == 'H' ? AnnotationRenderer.HELIX_COLOUR
+ : annotation.annotations[j].secondaryStructure == 'E' ? AnnotationRenderer.SHEET_COLOUR
+ : AnnotationRenderer.STEM_COLOUR;
}
}
}
import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceCollectionI;
import jalview.datamodel.SequenceI;
+import jalview.util.Comparison;
import java.awt.Color;
import java.util.Map;
Color currentColour;
- if (!jalview.util.Comparison.isGap(res))
+ if (!Comparison.isGap(res))
{
String max = (String) consensus[j].get(AAFrequency.MAXRESIDUE);
*/
package jalview.schemes;
-import java.awt.Color;
-import java.util.Map;
-
-import jalview.datamodel.AlignmentI;
+import jalview.analysis.Conservation;
import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
+import java.awt.Color;
+import java.util.Map;
+
public interface ColourSchemeI
{
/**
*
* @param c
*/
- public void setConservation(jalview.analysis.Conservation c);
+ public void setConservation(Conservation c);
/**
* enable or disable conservation shading for this colourscheme
package jalview.schemes;
import jalview.datamodel.AnnotatedCollectionI;
+import jalview.util.ColorUtils;
import java.awt.Color;
try
{
// fix the launchApp user defined coloursheme transfer bug
- jalview.schemes.UserColourScheme ucs = new jalview.schemes.UserColourScheme(
- "white");
+ UserColourScheme ucs = new UserColourScheme("white");
ucs.parseAppletParameter(name);
} catch (Exception e)
* @return null or an instance of the colourscheme configured to colour given
* sequence set
*/
- public static ColourSchemeI getColour(
- jalview.datamodel.AnnotatedCollectionI coll, int index)
+ public static ColourSchemeI getColour(AnnotatedCollectionI coll, int index)
{
// TODO 3.0 2.8 refactor signature to take an alignmentI like container so
// colourschemes based on annotation can be initialised
// Generate random colors and store
for (; j <= n; j++)
{
- rnaHelices[j] = jalview.util.ColorUtils
- .generateRandomColor(Color.white);
+ rnaHelices[j] = ColorUtils.generateRandomColor(Color.white);
}
}
*/
package jalview.schemes;
-import java.awt.*;
-import java.util.Hashtable;
-
import jalview.datamodel.AlignmentAnnotation;
+import jalview.util.ColorUtils;
+
+import java.awt.Color;
+import java.util.Hashtable;
/**
* Became RNAHelicesColour.java. Placeholder for true covariation color scheme
for (int j = 0; j <= numHelix; j++)
{
helixcolorhash.put(Integer.toString(j),
- jalview.util.ColorUtils.generateRandomColor(Color.white));
+ ColorUtils.generateRandomColor(Color.white));
}
}
import jalview.analysis.AAFrequency;
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
+import jalview.util.Comparison;
import java.awt.Color;
{
sc = ((Float) consensus[j].get(ignoreGaps)).floatValue();
- if (!jalview.util.Comparison.isGap(c))
+ if (!Comparison.isGap(c))
{
for (int i = 0; i < thresholds.length; i++)
{
* Character in sequence
*
* @return Color from purinepyrimidineIndex in
- * jalview.schemes.ResidueProperties
+ * ResidueProperties
*/
public Color findColour(char c)
{
*/
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 jalview.util.ColorUtils;
+
+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
if (!helixcolorhash.containsKey(Integer.toString(j)))
{
helixcolorhash.put(Integer.toString(j),
- jalview.util.ColorUtils.generateRandomColor(Color.white));
+ ColorUtils.generateRandomColor(Color.white));
}
}
}
/**
* Returns default color base on purinepyrimidineIndex in
- * jalview.schemes.ResidueProperties (Allows coloring in sequence logo)
+ * ResidueProperties (Allows coloring in sequence logo)
*
* @param c
* Character in sequence
Hashtable oldgroupColours;
- jalview.datamodel.AlignmentAnnotation currentAnnotation;
+ AlignmentAnnotation currentAnnotation;
boolean adjusting = false;
import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceCollectionI;
import jalview.datamodel.SequenceI;
+import jalview.util.Comparison;
import jalview.util.MessageManager;
import java.awt.Color;
if ((conservationLength > i) && (conservation[i] != '*')
&& (conservation[i] != '+'))
{
- if (jalview.util.Comparison.isGap(conservation[i]))
+ if (Comparison.isGap(conservation[i]))
{
currentColour = Color.white;
}
package jalview.schemes;
import jalview.datamodel.SequenceI;
+import jalview.util.Comparison;
import java.awt.Color;
}
}
- if (jalview.util.Comparison.isGap(c))
+ if (Comparison.isGap(c))
{
return Color.white;
}