+ float range = 0;\r
+\r
+ ColourSchemeI colourScheme;\r
+\r
+ /**\r
+ * Creates a new AnnotationColourGradient object.\r
+ */\r
+ public AnnotationColourGradient(AlignmentAnnotation annotation,\r
+ ColourSchemeI originalColour,\r
+ int aboveThreshold)\r
+ {\r
+ if(originalColour instanceof AnnotationColourGradient)\r
+ {\r
+ colourScheme = ((AnnotationColourGradient)originalColour).colourScheme;\r
+ }\r
+ else\r
+ colourScheme = originalColour;\r
+\r
+ this.annotation = annotation;\r
+\r
+ aboveAnnotationThreshold = aboveThreshold;\r
+\r
+ if(aboveThreshold!=NO_THRESHOLD && annotation.threshold!=null)\r
+ annotationThreshold = annotation.threshold;\r
+ }\r