@Override protected void handleEvents(final String EVENT_TYPE) {
        super.handleEvents(EVENT_TYPE);

        if ("VISIBILITY".equals(EVENT_TYPE)) {
            Helper.enableNode(titleText, !tile.getTitle().isEmpty());
            Helper.enableNode(valueText, tile.isValueVisible());
            Helper.enableNode(unitText, !tile.getUnit().isEmpty());
            dataPointsVisible = tile.getDataPointsVisible();
            if (dataPointsVisible) { drawChart(points); } else { ctx.clearRect(0, 0, width, height); }
        } else if ("SERIES".equals(EVENT_TYPE)) {
            Helper.enableNode(fillPath, ChartType.AREA == tile.getChartType());
        }
    }
@ Override protected void handleEvents ( final String EVENT_TYPE ) { super . handleEvents ( EVENT_TYPE ) ; if ( "VISIBILITY" . equals ( EVENT_TYPE ) ) { Helper . enableNode ( titleText , ! tile . getTitle ( ) . isEmpty ( ) ) ; Helper . enableNode ( valueText , tile . isValueVisible ( ) ) ; Helper . enableNode ( unitText , ! tile . getUnit ( ) . isEmpty ( ) ) ; dataPointsVisible = tile . getDataPointsVisible ( ) ; if ( dataPointsVisible ) { drawChart ( points ) ; } else { ctx . clearRect ( 0 , 0 , width , height ) ; } } else if ( "SERIES" . equals ( EVENT_TYPE ) ) { Helper . enableNode ( fillPath , ChartType . AREA == tile . getChartType ( ) ) ; } }
******************** Methods *******************************************