private int getPercentageY ( double value ) { value = 1.0 - value ; double d = top + ( ( ( bottom - top ) * value ) / ( maxPercentage - minPercentage ) ) ; return ( int ) d ; }
Get the Y coordinate based on percent value 0 . 0 - 1 . 0