@Override protected void resizeDynamicText() {
        double maxWidth = width - size * 0.1;
        double fontSize = size * 0.3;

        timeText.setFont(Fonts.latoRegular(fontSize));
        timeText.setText(timeFormatter.format(tile.getTime()));
        Helper.adjustTextSize(timeText, maxWidth, fontSize);
        timeText.setX((width - timeText.getLayoutBounds().getWidth()) * 0.5);
        timeText.setY(size * 0.35);

        //maxWidth = width - size * 0.1;
        fontSize = size * 0.1;
        dayOfWeekText.setFont(Fonts.latoRegular(fontSize));
        if (dayOfWeekText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(dayOfWeekText, maxWidth, fontSize); }
        dayOfWeekText.setX(size * 0.05);
        dayOfWeekText.setY(height - size * 0.275);
        dayOfWeekText.setY(timeRect.getLayoutBounds().getMaxY() + size * 0.11);

        //maxWidth = width - size * 0.1;
        dateText.setFont(Fonts.latoRegular(fontSize));
        if (dateText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(dateText, maxWidth, fontSize); }
        dateText.setX(size * 0.05);
        dateText.setY(height - size * 0.15);
        dateText.setY(timeRect.getLayoutBounds().getMaxY() + size * 0.235);
    }
@ Override protected void resizeDynamicText ( ) { double maxWidth = width - size * 0.1 ; double fontSize = size * 0.3 ; timeText . setFont ( Fonts . latoRegular ( fontSize ) ) ; timeText . setText ( timeFormatter . format ( tile . getTime ( ) ) ) ; Helper . adjustTextSize ( timeText , maxWidth , fontSize ) ; timeText . setX ( ( width - timeText . getLayoutBounds ( ) . getWidth ( ) ) * 0.5 ) ; timeText . setY ( size * 0.35 ) ; fontSize = size * 0.1 ; dayOfWeekText . setFont ( Fonts . latoRegular ( fontSize ) ) ; if ( dayOfWeekText . getLayoutBounds ( ) . getWidth ( ) > maxWidth ) { Helper . adjustTextSize ( dayOfWeekText , maxWidth , fontSize ) ; } dayOfWeekText . setX ( size * 0.05 ) ; dayOfWeekText . setY ( height - size * 0.275 ) ; dayOfWeekText . setY ( timeRect . getLayoutBounds ( ) . getMaxY ( ) + size * 0.11 ) ; dateText . setFont ( Fonts . latoRegular ( fontSize ) ) ; if ( dateText . getLayoutBounds ( ) . getWidth ( ) > maxWidth ) { Helper . adjustTextSize ( dateText , maxWidth , fontSize ) ; } dateText . setX ( size * 0.05 ) ; dateText . setY ( height - size * 0.15 ) ; dateText . setY ( timeRect . getLayoutBounds ( ) . getMaxY ( ) + size * 0.235 ) ; }
******************** Resizing ******************************************