@Test public void testSwitchModel() { System.out.println("switchModel"); boolean aggregate = true; AbstractGraphPanelVisualizer instance = new AbstractGraphPanelVisualizerImpl(); instance.switchModel(true); }
@Override public void switchModel(boolean aggregate) { ConcurrentSkipListMap<String, AbstractGraphRow> selectedModel; if (aggregate) { if (modelAggregate.isEmpty() && !model.isEmpty()) { throw new UnsupportedOperationException("Seems you've requested " + "aggregate mode for graph that don't support it. We apologize..."); } selectedModel = modelAggregate; } else { selectedModel = model; } graphPanel.getGraphObject().setRows(selectedModel); graphPanel.clearRowsTab(); for (AbstractGraphRow abstractGraphRow : selectedModel.values()) { graphPanel.addRow(abstractGraphRow); } isAggregate = aggregate; getSettingsPanel().setAggregateMode(aggregate); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override public void switchModel(boolean aggregate) { ConcurrentSkipListMap<String, AbstractGraphRow> selectedModel; if (aggregate) { if (modelAggregate.isEmpty() && !model.isEmpty()) { throw new UnsupportedOperationException("Seems you've requested " + "aggregate mode for graph that don't support it. We apologize..."); } selectedModel = modelAggregate; } else { selectedModel = model; } graphPanel.getGraphObject().setRows(selectedModel); graphPanel.clearRowsTab(); for (AbstractGraphRow abstractGraphRow : selectedModel.values()) { graphPanel.addRow(abstractGraphRow); } isAggregate = aggregate; getSettingsPanel().setAggregateMode(aggregate); } }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override public void switchModel(boolean aggregate) { ConcurrentSkipListMap<String, AbstractGraphRow> selectedModel; if (aggregate) { if (modelAggregate.isEmpty() && !model.isEmpty()) { throw new UnsupportedOperationException("Seems you've requested " + "aggregate mode for graph that don't support it. We apologize..."); } selectedModel = modelAggregate; } else { selectedModel = model; } graphPanel.getGraphObject().setRows(selectedModel); graphPanel.clearRowsTab(); for (AbstractGraphRow abstractGraphRow : selectedModel.values()) { graphPanel.addRow(abstractGraphRow); } isAggregate = aggregate; getSettingsPanel().setAggregateMode(aggregate); } AbstractGraphPanelVisualizer(); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override public void switchModel(boolean aggregate) { ConcurrentSkipListMap<String, AbstractGraphRow> selectedModel; if (aggregate) { if (modelAggregate.isEmpty() && !model.isEmpty()) { throw new UnsupportedOperationException("Seems you've requested " + "aggregate mode for graph that don't support it. We apologize..."); } selectedModel = modelAggregate; } else { selectedModel = model; } graphPanel.getGraphObject().setRows(selectedModel); graphPanel.clearRowsTab(); for (AbstractGraphRow abstractGraphRow : selectedModel.values()) { graphPanel.addRow(abstractGraphRow); } isAggregate = aggregate; getSettingsPanel().setAggregateMode(aggregate); } AbstractGraphPanelVisualizer(); @Override abstract String getStaticLabel(); void updateGui(Sample sample); void updateGui(); @Override void clearData(); @Override Image getImage(); @Override int getGranulation(); @Override void setGranulation(int granulation); @Override void stateChanged(ChangeEvent e); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override GraphPanelChart getGraphPanelChart(); @Override void switchModel(boolean aggregate); JSettingsPanel getSettingsPanel(); void setUpFiltering(CorrectedResultCollector rc); void setIgnoreCurrentTestStartTime(); boolean isIgnoreCurrentTestStartTime(); @Override void clearGui(); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override public void switchModel(boolean aggregate) { ConcurrentSkipListMap<String, AbstractGraphRow> selectedModel; if (aggregate) { if (modelAggregate.isEmpty() && !model.isEmpty()) { throw new UnsupportedOperationException("Seems you've requested " + "aggregate mode for graph that don't support it. We apologize..."); } selectedModel = modelAggregate; } else { selectedModel = model; } graphPanel.getGraphObject().setRows(selectedModel); graphPanel.clearRowsTab(); for (AbstractGraphRow abstractGraphRow : selectedModel.values()) { graphPanel.addRow(abstractGraphRow); } isAggregate = aggregate; getSettingsPanel().setAggregateMode(aggregate); } AbstractGraphPanelVisualizer(); @Override abstract String getStaticLabel(); void updateGui(Sample sample); void updateGui(); @Override void clearData(); @Override Image getImage(); @Override int getGranulation(); @Override void setGranulation(int granulation); @Override void stateChanged(ChangeEvent e); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override GraphPanelChart getGraphPanelChart(); @Override void switchModel(boolean aggregate); JSettingsPanel getSettingsPanel(); void setUpFiltering(CorrectedResultCollector rc); void setIgnoreCurrentTestStartTime(); boolean isIgnoreCurrentTestStartTime(); @Override void clearGui(); static final String INTERVAL_PROPERTY; static final String GRAPH_AGGREGATED; }