private void resizeValueText() {
        double maxWidth = size * 0.86466165;
        double fontSize = size * 0.2556391;
        valueText.setFont(Fonts.latoLight(fontSize));
        if (valueText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(valueText, maxWidth, fontSize); }
        valueText.relocate((size - valueText.getLayoutBounds().getWidth()) * 0.5, (size - valueText.getLayoutBounds().getHeight()) * 0.5);
    }
private void resizeValueText ( ) { double maxWidth = size * 0.86466165 ; double fontSize = size * 0.2556391 ; valueText . setFont ( Fonts . latoLight ( fontSize ) ) ; if ( valueText . getLayoutBounds ( ) . getWidth ( ) > maxWidth ) { Helper . adjustTextSize ( valueText , maxWidth , fontSize ) ; } valueText . relocate ( ( size - valueText . getLayoutBounds ( ) . getWidth ( ) ) * 0.5 , ( size - valueText . getLayoutBounds ( ) . getHeight ( ) ) * 0.5 ) ; }
******************** Resizing ******************************************