+\r
+ float range=1f;\r
+ if (thresholdIsMinMax\r
+ && annotation.threshold != null\r
+ && aboveAnnotationThreshold == ABOVE_THRESHOLD\r
+ && annotation.annotations[j].value>annotation.threshold.value)\r
+ {\r
+ range =\r
+ (annotation.annotations[j].value - annotation.threshold.value) /\r
+ (annotation.graphMax - annotation.threshold.value);\r
+ }\r
+ else if (thresholdIsMinMax\r
+ && annotation.threshold != null\r
+ && aboveAnnotationThreshold == BELOW_THRESHOLD\r
+ && annotation.annotations[j].value > annotation.graphMin)\r
+ {\r
+ range =\r
+ ( annotation.annotations[j].value - annotation.graphMin ) /\r
+ (annotation.threshold.value - annotation.graphMin );\r
+ }\r
+ else\r
+ {\r
+ range = (annotation.annotations[j].value -\r
+ annotation.graphMin) /\r
+ (annotation.graphMax - annotation.graphMin);\r
+ }\r
+\r
+\r