@Test public void testConfigure() { System.out.println("configure"); TestElement el = new ResultCollector(); el.setProperty(new LongProperty(AbstractGraphPanelVisualizer.INTERVAL_PROPERTY, 10000)); AbstractGraphPanelVisualizer instance = new AbstractGraphPanelVisualizerImpl(); instance.configure(el); }
@Override public void configure(TestElement el) { super.configure(el); int intervalProp = el.getPropertyAsInt(INTERVAL_PROPERTY); boolean aggregatedProp = el.getPropertyAsBoolean(GRAPH_AGGREGATED, false); if (intervalProp > 0) { setGranulation(intervalProp); } graphPanel.getRowSelectorPanel().setIncludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); graphPanel.getRowSelectorPanel().setExcludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { graphPanel .getRowSelectorPanel() .setStartOffset( (el.getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { graphPanel .getRowSelectorPanel() .setEndOffset( (el.getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } graphPanel .getRowSelectorPanel() .setSelectedRegExpInc( el.getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); graphPanel .getRowSelectorPanel() .setSelectedRegExpExc( el.getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } switchModel(aggregatedProp); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override public void configure(TestElement el) { super.configure(el); int intervalProp = el.getPropertyAsInt(INTERVAL_PROPERTY); boolean aggregatedProp = el.getPropertyAsBoolean(GRAPH_AGGREGATED, false); if (intervalProp > 0) { setGranulation(intervalProp); } graphPanel.getRowSelectorPanel().setIncludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); graphPanel.getRowSelectorPanel().setExcludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { graphPanel .getRowSelectorPanel() .setStartOffset( (el.getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { graphPanel .getRowSelectorPanel() .setEndOffset( (el.getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } graphPanel .getRowSelectorPanel() .setSelectedRegExpInc( el.getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); graphPanel .getRowSelectorPanel() .setSelectedRegExpExc( el.getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } switchModel(aggregatedProp); } }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override public void configure(TestElement el) { super.configure(el); int intervalProp = el.getPropertyAsInt(INTERVAL_PROPERTY); boolean aggregatedProp = el.getPropertyAsBoolean(GRAPH_AGGREGATED, false); if (intervalProp > 0) { setGranulation(intervalProp); } graphPanel.getRowSelectorPanel().setIncludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); graphPanel.getRowSelectorPanel().setExcludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { graphPanel .getRowSelectorPanel() .setStartOffset( (el.getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { graphPanel .getRowSelectorPanel() .setEndOffset( (el.getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } graphPanel .getRowSelectorPanel() .setSelectedRegExpInc( el.getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); graphPanel .getRowSelectorPanel() .setSelectedRegExpExc( el.getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } switchModel(aggregatedProp); } AbstractGraphPanelVisualizer(); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { @Override public void configure(TestElement el) { super.configure(el); int intervalProp = el.getPropertyAsInt(INTERVAL_PROPERTY); boolean aggregatedProp = el.getPropertyAsBoolean(GRAPH_AGGREGATED, false); if (intervalProp > 0) { setGranulation(intervalProp); } graphPanel.getRowSelectorPanel().setIncludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); graphPanel.getRowSelectorPanel().setExcludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { graphPanel .getRowSelectorPanel() .setStartOffset( (el.getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { graphPanel .getRowSelectorPanel() .setEndOffset( (el.getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } graphPanel .getRowSelectorPanel() .setSelectedRegExpInc( el.getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); graphPanel .getRowSelectorPanel() .setSelectedRegExpExc( el.getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } switchModel(aggregatedProp); } 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 configure(TestElement el) { super.configure(el); int intervalProp = el.getPropertyAsInt(INTERVAL_PROPERTY); boolean aggregatedProp = el.getPropertyAsBoolean(GRAPH_AGGREGATED, false); if (intervalProp > 0) { setGranulation(intervalProp); } graphPanel.getRowSelectorPanel().setIncludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS)); graphPanel.getRowSelectorPanel().setExcludeSampleLabels(el.getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS)); if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.START_OFFSET))) { graphPanel .getRowSelectorPanel() .setStartOffset( (el.getPropertyAsLong(CorrectedResultCollector.START_OFFSET))); } if (!CorrectedResultCollector.EMPTY_FIELD.equals(el .getPropertyAsString(CorrectedResultCollector.END_OFFSET))) { graphPanel .getRowSelectorPanel() .setEndOffset( (el.getPropertyAsLong(CorrectedResultCollector.END_OFFSET))); } graphPanel .getRowSelectorPanel() .setSelectedRegExpInc( el.getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE)); graphPanel .getRowSelectorPanel() .setSelectedRegExpExc( el.getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE)); if (el instanceof CorrectedResultCollector) { setUpFiltering((CorrectedResultCollector) el); } switchModel(aggregatedProp); } 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; }