Exemplo n.º 1
0
 /**
  * For the JSP to get the color to highlight based on the value.
  *
  * @return highlight color.
  */
 public String getHighlightColor() {
   if (GenomicCriteriaMatchTypeEnum.MATCH_POSITIVE_OR_NEGATIVE.equals(criteriaMatchType)) {
     return value >= 0
         ? GenomicCriteriaMatchTypeEnum.OVER.getHighlightColor()
         : GenomicCriteriaMatchTypeEnum.UNDER.getHighlightColor();
   }
   return criteriaMatchType.getHighlightColor();
 }
Exemplo n.º 2
0
 /**
  * For the JSP to get the color to highlight based on the calls value.
  *
  * @return highlight color for the Calls value.
  */
 public String getHighlightColorCalls() {
   return callsValue > 0
       ? GenomicCriteriaMatchTypeEnum.OVER.getHighlightColor()
       : GenomicCriteriaMatchTypeEnum.UNDER.getHighlightColor();
 }