Skip to content
Browse files

Output numbers out of scale.

  • Loading branch information...
1 parent 4ad3a8c commit 54104d968b50c15c1c41ca4d367d7be9c980c66b @olas committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 plugins/net.bioclipse.ds/src/net/bioclipse/ds/model/result/ColorHelper.java
View
7 plugins/net.bioclipse.ds/src/net/bioclipse/ds/model/result/ColorHelper.java
@@ -14,6 +14,8 @@
import java.util.HashMap;
import java.util.Map;
+import org.apache.log4j.Logger;
+
import net.bioclipse.ds.DSConstants;
import net.bioclipse.ds.model.ITestResult;
@@ -23,6 +25,8 @@
*
*/
public class ColorHelper {
+
+ private static final Logger logger = Logger.getLogger(ColorHelper.class);
private static Map<Integer, Color> blueRedScale;
@@ -32,6 +36,9 @@
* @return
*/
public static Color getBlueRedColor( int resValue ) {
+
+ if (resValue<1 || resValue>100)
+ logger.error("Value is " + resValue + " but must be between 1 and 100");
if (blueRedScale!=null)
return blueRedScale.get( resValue );

0 comments on commit 54104d9

Please sign in to comment.
Something went wrong with that request. Please try again.