protected void pushDataToView() {

        getView().dataClear();

        for (int i=0; i<dataSet.getRowCount(); i++) {
            String label = super.formatValue(i, 0);
            getView().dataAddLabel(label);
        }

        List<DataColumn> columns = dataSet.getColumns();
        for (int i=1; i<columns.size(); i++) {
            DataColumn seriesColumn = columns.get(0);
            ColumnSettings columnSettings = displayerSettings.getColumnSettings(seriesColumn);
            String columnName = columnSettings.getColumnName();
            String color = COLOR_ARRAY[i - 1];

            double[] values = new double[dataSet.getRowCount()];
            for (int j=0; j<dataSet.getRowCount(); j++) {
                values[j] = ((Number) dataSet.getValueAt(j, i)).doubleValue();
            }

            getView().dataAddSerie(columnName, color, values);
        }
    }
protected void pushDataToView ( ) { getView ( ) . dataClear ( ) ; for ( int i = 0 ; i < dataSet . getRowCount ( ) ; i ++ ) { String label = super . formatValue ( i , 0 ) ; getView ( ) . dataAddLabel ( label ) ; } List < DataColumn > columns = dataSet . getColumns ( ) ; for ( int i = 1 ; i < columns . size ( ) ; i ++ ) { DataColumn seriesColumn = columns . get ( 0 ) ; ColumnSettings columnSettings = displayerSettings . getColumnSettings ( seriesColumn ) ; String columnName = columnSettings . getColumnName ( ) ; String color = COLOR_ARRAY [ i - 1 ] ; double [ ] values = new double [ dataSet . getRowCount ( ) ] ; for ( int j = 0 ; j < dataSet . getRowCount ( ) ; j ++ ) { values [ j ] = ( ( Number ) dataSet . getValueAt ( j , i ) ) . doubleValue ( ) ; } getView ( ) . dataAddSerie ( columnName , color , values ) ; } }
Data generation