@Override public void applyConfiguration( CompoundTableView view, Properties configuration, boolean isAdjusting) { JVisualization2D visualization = (JVisualization2D) ((VisualizationPanel2D) view).getVisualization(); visualization.setShownCorrelationType( findListIndex( configuration.getProperty(PROPERTY_CORRELATION_TYPE), CorrelationCalculator.TYPE_NAME, -1)); visualization.setCurveMode( findListIndex( configuration.getProperty(PROPERTY_MEAN_LINE_TYPE), JVisualization2D.CURVE_MODE_CODE, 0), "true".equals(configuration.getProperty(PROPERTY_SHOW_STDDEV)), "true".equals(configuration.getProperty(PROPERTY_SPLIT_BY_CATEGORY))); visualization.setPValueColumn( getTableModel().findColumn(configuration.getProperty(PROPERTY_PVALUE_COLUMN)), configuration.getProperty(PROPERTY_PVALUE_REF_CATEGORY)); visualization.setShowPValue( "true".equals(configuration.getProperty(PROPERTY_BOXPLOT_SHOW_PVALUE))); visualization.setShowFoldChange( "true".equals(configuration.getProperty(PROPERTY_BOXPLOT_SHOW_FOLDCHANGE))); visualization.setBoxplotMeanMode( findListIndex( configuration.getProperty(PROPERTY_BOXPLOT_MEAN_MODE), JVisualization.BOXPLOT_MEAN_MODE_CODE, 0)); visualization.setShowMeanAndMedianValues( "true".equals(configuration.getProperty(PROPERTY_BOXPLOT_MEAN_VALUES))); }
@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"); }