private boolean updateMinMaxValues ( ) { double min_x_value_new ; double max_x_value_new ; double max_y_value_new ; if ( this . measures == null ) { // no values received yet -> reset axes min_x_value_new = 0 ; max_x_value_new = 1 ; max_y_value_new = 1 ; } else { min_x_value_new = getMinXValue ( ) ; max_x_value_new = getMaxXValue ( ) ; max_y_value_new = getMaxSelectedValue ( ) ; } // resizing needed? if ( min_x_value_new != this . min_x_value || max_x_value_new != this . max_x_value || max_y_value_new != this . max_y_value ) { this . min_x_value = min_x_value_new ; this . max_x_value = max_x_value_new ; this . max_y_value = max_y_value_new ; updateMinXValue ( ) ; updateMaxXValue ( ) ; updateMaxYValue ( ) ; updateLowerXValue ( ) ; updateUpperXValue ( ) ; updateUpperYValue ( ) ; return true ; } return false ; }
Computes the minimum and maximum values for the x and y - axis and updates the children if necessary .