@Override
  public void addViewConfiguration(Properties configuration) {
    JVisualization2D v2d = (JVisualization2D) getVisualization();
    int correlationType = v2d.getShownCorrelationType();
    if (correlationType != -1)
      configuration.setProperty(
          PROPERTY_CORRELATION_TYPE, CorrelationCalculator.TYPE_NAME[correlationType]);

    configuration.setProperty(
        PROPERTY_MEAN_LINE_TYPE, JVisualization2D.CURVE_MODE_CODE[v2d.getCurveMode()]);
    configuration.setProperty(
        PROPERTY_SHOW_STDDEV, v2d.isShowStandardDeviation() ? "true" : "false");
    configuration.setProperty(
        PROPERTY_SPLIT_BY_CATEGORY, v2d.isCurveSplitByCategory() ? "true" : "false");

    int pValueColumn = v2d.getPValueColumn();
    if (pValueColumn != JVisualization.cColumnUnassigned) {
      configuration.setProperty(
          PROPERTY_PVALUE_COLUMN, getTableModel().getColumnTitleNoAlias(pValueColumn));
      configuration.setProperty(PROPERTY_PVALUE_REF_CATEGORY, v2d.getPValueRefCategory());
      configuration.setProperty(
          PROPERTY_BOXPLOT_SHOW_PVALUE, v2d.isShowPValue() ? "true" : "false");
      configuration.setProperty(
          PROPERTY_BOXPLOT_SHOW_FOLDCHANGE, v2d.isShowFoldChange() ? "true" : "false");
    }

    configuration.setProperty(
        PROPERTY_BOXPLOT_MEAN_MODE,
        JVisualization.BOXPLOT_MEAN_MODE_CODE[v2d.getBoxplotMeanMode()]);
    configuration.setProperty(
        PROPERTY_BOXPLOT_MEAN_VALUES, v2d.isShowMeanAndMedianValues() ? "true" : "false");
  }