public String getAccumulatorColor ( final String accumulatorName ) { if ( StringUtils . isEmpty ( accumulatorName ) ) throw new IllegalArgumentException ( "accumulatorName is null" ) ; if ( accumulatorsColors == null || accumulatorsColors . length == 0 ) return null ; for ( AccumulatorGraphColor accumulator : accumulatorsColors ) { if ( accumulatorName . equals ( accumulator . getName ( ) ) ) return accumulator . getColor ( ) ; } return null ; }
Returns accumulator color by given accumulator name .