private static Double translateMarkerToRange ( double size , Double min , Double max , Double value ) { if ( value != null && min != null && max != null ) { return ( size / ( max - min ) ) * ( value - min ) ; } return value ; }
Translates marker value to be correct in given range