@Test public void testGetNewRow_9args() { System.out.println("getNewRow"); ConcurrentSkipListMap<String, AbstractGraphRow> model = new ConcurrentSkipListMap<String, AbstractGraphRow>(); int rowType = 0; String label = ""; int markerSize = 0; boolean isBarRow = false; boolean displayLabel = false; boolean thickLines = false; boolean showInLegend = false; boolean canCompose = false; AbstractGraphPanelVisualizer instance = new AbstractGraphPanelVisualizerImpl(); AbstractGraphRow result = instance.getNewRow(model, rowType, label, markerSize, isBarRow, displayLabel, thickLines, showInLegend, canCompose); assertNotNull(result); }
protected synchronized AbstractGraphRow getNewRow( ConcurrentSkipListMap<String, AbstractGraphRow> model, int rowType, String label, int markerSize, boolean isBarRow, boolean displayLabel, boolean thickLines, boolean showInLegend, Color color, boolean canCompose) { AbstractGraphRow row; if (log.isDebugEnabled()) { log.debug("This AbstractGraphPanelVisualizer is an instance of [" + this.getClass().getName() + "]"); } if (!model.containsKey(label)) { row = AbstractGraphRow.instantiateNewRow(rowType); row.setLabel(label); row.setMarkerSize(markerSize); row.setDrawBar(isBarRow); row.setDrawLine(!isBarRow); row.setDrawValueLabel(displayLabel); row.setDrawThickLines(thickLines); row.setShowInLegend(showInLegend); Color overrideColor = null; if (this.labelToColorMapping != null) overrideColor = labelToColorMapping.getColorForLabel(row.getLabel()); if (log.isDebugEnabled()) if (row != null) { log.debug("%#@ Found override color [" + (overrideColor == null ? "null" : overrideColor.toString()) + "]"); log.debug("%#@ for label [" + row.getLabel() + "] color in-parm [" + (color == null ? "null" : color.toString()) + "]"); log.debug("%#@ prev row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); } else log.debug("%#@ Found null row displayLabel[" + displayLabel + "] and label [" + label + "]"); row.setColor(overrideColor != null ? overrideColor : colors.getNextColor()); if (log.isDebugEnabled()) log.debug("%#@ new row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); model.put(label, row); graphPanel.addRow(row); if (canCompose) { addRowToCompositeModels(getModel().getName(), row); } } else { row = model.get(label); } return row; }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { protected synchronized AbstractGraphRow getNewRow( ConcurrentSkipListMap<String, AbstractGraphRow> model, int rowType, String label, int markerSize, boolean isBarRow, boolean displayLabel, boolean thickLines, boolean showInLegend, Color color, boolean canCompose) { AbstractGraphRow row; if (log.isDebugEnabled()) { log.debug("This AbstractGraphPanelVisualizer is an instance of [" + this.getClass().getName() + "]"); } if (!model.containsKey(label)) { row = AbstractGraphRow.instantiateNewRow(rowType); row.setLabel(label); row.setMarkerSize(markerSize); row.setDrawBar(isBarRow); row.setDrawLine(!isBarRow); row.setDrawValueLabel(displayLabel); row.setDrawThickLines(thickLines); row.setShowInLegend(showInLegend); Color overrideColor = null; if (this.labelToColorMapping != null) overrideColor = labelToColorMapping.getColorForLabel(row.getLabel()); if (log.isDebugEnabled()) if (row != null) { log.debug("%#@ Found override color [" + (overrideColor == null ? "null" : overrideColor.toString()) + "]"); log.debug("%#@ for label [" + row.getLabel() + "] color in-parm [" + (color == null ? "null" : color.toString()) + "]"); log.debug("%#@ prev row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); } else log.debug("%#@ Found null row displayLabel[" + displayLabel + "] and label [" + label + "]"); row.setColor(overrideColor != null ? overrideColor : colors.getNextColor()); if (log.isDebugEnabled()) log.debug("%#@ new row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); model.put(label, row); graphPanel.addRow(row); if (canCompose) { addRowToCompositeModels(getModel().getName(), row); } } else { row = model.get(label); } return row; } }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { protected synchronized AbstractGraphRow getNewRow( ConcurrentSkipListMap<String, AbstractGraphRow> model, int rowType, String label, int markerSize, boolean isBarRow, boolean displayLabel, boolean thickLines, boolean showInLegend, Color color, boolean canCompose) { AbstractGraphRow row; if (log.isDebugEnabled()) { log.debug("This AbstractGraphPanelVisualizer is an instance of [" + this.getClass().getName() + "]"); } if (!model.containsKey(label)) { row = AbstractGraphRow.instantiateNewRow(rowType); row.setLabel(label); row.setMarkerSize(markerSize); row.setDrawBar(isBarRow); row.setDrawLine(!isBarRow); row.setDrawValueLabel(displayLabel); row.setDrawThickLines(thickLines); row.setShowInLegend(showInLegend); Color overrideColor = null; if (this.labelToColorMapping != null) overrideColor = labelToColorMapping.getColorForLabel(row.getLabel()); if (log.isDebugEnabled()) if (row != null) { log.debug("%#@ Found override color [" + (overrideColor == null ? "null" : overrideColor.toString()) + "]"); log.debug("%#@ for label [" + row.getLabel() + "] color in-parm [" + (color == null ? "null" : color.toString()) + "]"); log.debug("%#@ prev row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); } else log.debug("%#@ Found null row displayLabel[" + displayLabel + "] and label [" + label + "]"); row.setColor(overrideColor != null ? overrideColor : colors.getNextColor()); if (log.isDebugEnabled()) log.debug("%#@ new row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); model.put(label, row); graphPanel.addRow(row); if (canCompose) { addRowToCompositeModels(getModel().getName(), row); } } else { row = model.get(label); } return row; } AbstractGraphPanelVisualizer(); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { protected synchronized AbstractGraphRow getNewRow( ConcurrentSkipListMap<String, AbstractGraphRow> model, int rowType, String label, int markerSize, boolean isBarRow, boolean displayLabel, boolean thickLines, boolean showInLegend, Color color, boolean canCompose) { AbstractGraphRow row; if (log.isDebugEnabled()) { log.debug("This AbstractGraphPanelVisualizer is an instance of [" + this.getClass().getName() + "]"); } if (!model.containsKey(label)) { row = AbstractGraphRow.instantiateNewRow(rowType); row.setLabel(label); row.setMarkerSize(markerSize); row.setDrawBar(isBarRow); row.setDrawLine(!isBarRow); row.setDrawValueLabel(displayLabel); row.setDrawThickLines(thickLines); row.setShowInLegend(showInLegend); Color overrideColor = null; if (this.labelToColorMapping != null) overrideColor = labelToColorMapping.getColorForLabel(row.getLabel()); if (log.isDebugEnabled()) if (row != null) { log.debug("%#@ Found override color [" + (overrideColor == null ? "null" : overrideColor.toString()) + "]"); log.debug("%#@ for label [" + row.getLabel() + "] color in-parm [" + (color == null ? "null" : color.toString()) + "]"); log.debug("%#@ prev row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); } else log.debug("%#@ Found null row displayLabel[" + displayLabel + "] and label [" + label + "]"); row.setColor(overrideColor != null ? overrideColor : colors.getNextColor()); if (log.isDebugEnabled()) log.debug("%#@ new row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); model.put(label, row); graphPanel.addRow(row); if (canCompose) { addRowToCompositeModels(getModel().getName(), row); } } else { row = model.get(label); } return row; } 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 { protected synchronized AbstractGraphRow getNewRow( ConcurrentSkipListMap<String, AbstractGraphRow> model, int rowType, String label, int markerSize, boolean isBarRow, boolean displayLabel, boolean thickLines, boolean showInLegend, Color color, boolean canCompose) { AbstractGraphRow row; if (log.isDebugEnabled()) { log.debug("This AbstractGraphPanelVisualizer is an instance of [" + this.getClass().getName() + "]"); } if (!model.containsKey(label)) { row = AbstractGraphRow.instantiateNewRow(rowType); row.setLabel(label); row.setMarkerSize(markerSize); row.setDrawBar(isBarRow); row.setDrawLine(!isBarRow); row.setDrawValueLabel(displayLabel); row.setDrawThickLines(thickLines); row.setShowInLegend(showInLegend); Color overrideColor = null; if (this.labelToColorMapping != null) overrideColor = labelToColorMapping.getColorForLabel(row.getLabel()); if (log.isDebugEnabled()) if (row != null) { log.debug("%#@ Found override color [" + (overrideColor == null ? "null" : overrideColor.toString()) + "]"); log.debug("%#@ for label [" + row.getLabel() + "] color in-parm [" + (color == null ? "null" : color.toString()) + "]"); log.debug("%#@ prev row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); } else log.debug("%#@ Found null row displayLabel[" + displayLabel + "] and label [" + label + "]"); row.setColor(overrideColor != null ? overrideColor : colors.getNextColor()); if (log.isDebugEnabled()) log.debug("%#@ new row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]"); model.put(label, row); graphPanel.addRow(row); if (canCompose) { addRowToCompositeModels(getModel().getName(), row); } } else { row = model.get(label); } return row; } 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; }