graph.getChartSettings().setLineWidth(lineWeight); graph.getChartSettings().setDrawGradient(gradient > 0); graph.getChartSettings().setDrawFinalZeroingLines(zeroing > 0); graph.getChartSettings().setMaxPointPerRow(rowsLimit); graph.getChartSettings().setPreventXAxisOverScaling(preventOutliers > 0); graph.getChartSettings().setHideNonRepValLimit(lowCounts); graph.getChartSettings().setForcedMaxY(forceY); graph.getChartSettings().setExpendRows(autoScaleRows > 0); graph.getChartSettings().setChartMarkers(markers > 0 ? ChartSettings.CHART_MARKERS_YES : ChartSettings.CHART_MARKERS_NO);
graph.getChartSettings().setDrawGradient("true".equalsIgnoreCase(cfgDrawGradient.trim())); graph.getChartSettings().setConfigNeverDrawFinalZeroingLines("true".equalsIgnoreCase(cfgNeverDrawFinalZeroingLines.trim())); graph.getChartSettings().setConfigOptimizeYAxis("true".equalsIgnoreCase(cfgOptimizeYAxis.trim())); graph.getChartSettings().setConfigNeverDrawCurrentX("true".equalsIgnoreCase(cfgNeverDrawFinalCurrentX.trim())); graph.getChartSettings().setConfigCsvSeparator(cfgCsvSeparator); graph.getChartSettings().setUseRelativeTime("true".equalsIgnoreCase(cfgUseRelativeTime.trim())); graph.getChartSettings().setLineWidth(JMeterPluginsUtils.getFloatFromString(cfgGraphLineWitdh, 1.0f)); boolean removeMarkers = "false".equalsIgnoreCase(cfgGraphLineMarker.trim()); if (removeMarkers) { graph.getChartSettings().setChartMarkers(ChartSettings.CHART_MARKERS_NO);
private void jCheckBoxAutoExpandActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxAutoExpandActionPerformed parent.getGraphPanelChart().getChartSettings().setExpendRows(jCheckBoxAutoExpand.isSelected()); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxAutoExpandActionPerformed
private void jCheckBoxDrawFinalZeroingLinesActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxDrawFinalZeroingLinesActionPerformed {//GEN-HEADEREND:event_jCheckBoxDrawFinalZeroingLinesActionPerformed parent.getGraphPanelChart().getChartSettings().setDrawFinalZeroingLines(jCheckBoxDrawFinalZeroingLines.isSelected()); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxDrawFinalZeroingLinesActionPerformed
private void jCheckBoxMaxPointsActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxMaxPointsActionPerformed {//GEN-HEADEREND:event_jCheckBoxMaxPointsActionPerformed if (jCheckBoxMaxPoints.isSelected()) { parent.getGraphPanelChart().getChartSettings().setMaxPointPerRow(getValueFromString((String) jComboBoxMaxPoints.getSelectedItem())); } else { parent.getGraphPanelChart().getChartSettings().setMaxPointPerRow(-1); } refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxMaxPointsActionPerformed
private void jCheckBoxHideNonRepValuesActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxHideNonRepValuesActionPerformed {//GEN-HEADEREND:event_jCheckBoxHideNonRepValuesActionPerformed if (jCheckBoxHideNonRepValues.isSelected()) { parent.getGraphPanelChart().getChartSettings().setHideNonRepValLimit(getValueFromString((String) jComboBoxHideNonRepValLimit.getSelectedItem())); } else { parent.getGraphPanelChart().getChartSettings().setHideNonRepValLimit(-1); } refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxHideNonRepValuesActionPerformed
private void jCheckBoxMaxYActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxMaxYActionPerformed {//GEN-HEADEREND:event_jCheckBoxMaxYActionPerformed long value = getLongValue(jTextFieldMaxY.getText()); long oldValue = parent.getGraphPanelChart().getChartSettings().getForcedMaxY(); if (value == -1) { jTextFieldMaxY.setForeground(Color.red); } else { jTextFieldMaxY.setForeground(Color.black); } if (jCheckBoxMaxY.isSelected()) { parent.getGraphPanelChart().getChartSettings().setForcedMaxY(value); if (oldValue != value) { refreshGraphPreview(); } } else { parent.getGraphPanelChart().getChartSettings().setForcedMaxY(-1); if (oldValue != -1) { refreshGraphPreview(); } } }//GEN-LAST:event_jCheckBoxMaxYActionPerformed
private void jCheckBoxDrawMarkersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxDrawMarkersActionPerformed if (jCheckBoxDrawMarkers.isSelected()) parent.getGraphPanelChart().getChartSettings().setChartMarkers(ChartSettings.CHART_MARKERS_YES); else parent.getGraphPanelChart().getChartSettings().setChartMarkers(ChartSettings.CHART_MARKERS_NO); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxDrawMarkersActionPerformed
private void jCheckBoxLimitMaxXValueActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxLimitMaxXValueActionPerformed {//GEN-HEADEREND:event_jCheckBoxLimitMaxXValueActionPerformed parent.getGraphPanelChart().getChartSettings().setPreventXAxisOverScaling(jCheckBoxLimitMaxXValue.isSelected()); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxLimitMaxXValueActionPerformed
private void jCheckBoxPaintGradientActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxPaintGradientActionPerformed {//GEN-HEADEREND:event_jCheckBoxPaintGradientActionPerformed parent.getGraphPanelChart().getChartSettings().setDrawGradient(jCheckBoxPaintGradient.isSelected()); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxPaintGradientActionPerformed
private void jComboBoxLineWidthActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxLineWidthActionPerformed float lineWidth; try { lineWidth = Float.parseFloat(jComboBoxLineWidth.getSelectedItem().toString()); } catch (NumberFormatException ex) { lineWidth = 1.0f; } parent.getGraphPanelChart().getChartSettings().setLineWidth(lineWidth); refreshGraphPreview(); }//GEN-LAST:event_jComboBoxLineWidthActionPerformed
private void jCheckBoxAutoExpandActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxAutoExpandActionPerformed parent.getGraphPanelChart().getChartSettings().setExpendRows(jCheckBoxAutoExpand.isSelected()); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxAutoExpandActionPerformed
graph.getChartSettings().setDrawGradient("true".equalsIgnoreCase(cfgDrawGradient.trim())); graph.getChartSettings().setConfigNeverDrawFinalZeroingLines("true".equalsIgnoreCase(cfgNeverDrawFinalZeroingLines.trim())); graph.getChartSettings().setConfigOptimizeYAxis("true".equalsIgnoreCase(cfgOptimizeYAxis.trim())); graph.getChartSettings().setConfigNeverDrawCurrentX("true".equalsIgnoreCase(cfgNeverDrawFinalCurrentX.trim())); graph.getChartSettings().setConfigCsvSeparator(cfgCsvSeparator); graph.getChartSettings().setUseRelativeTime("true".equalsIgnoreCase(cfgUseRelativeTime.trim())); graph.getChartSettings().setLineWidth(JMeterPluginsUtils.getFloatFromString(cfgGraphLineWitdh, 1.0f)); boolean removeMarkers = "false".equalsIgnoreCase(cfgGraphLineMarker.trim()); if (removeMarkers) { graph.getChartSettings().setChartMarkers(ChartSettings.CHART_MARKERS_NO);
private void jCheckBoxDrawFinalZeroingLinesActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxDrawFinalZeroingLinesActionPerformed {//GEN-HEADEREND:event_jCheckBoxDrawFinalZeroingLinesActionPerformed parent.getGraphPanelChart().getChartSettings().setDrawFinalZeroingLines(jCheckBoxDrawFinalZeroingLines.isSelected()); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxDrawFinalZeroingLinesActionPerformed
private void jCheckBoxMaxPointsActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxMaxPointsActionPerformed {//GEN-HEADEREND:event_jCheckBoxMaxPointsActionPerformed if (jCheckBoxMaxPoints.isSelected()) { parent.getGraphPanelChart().getChartSettings().setMaxPointPerRow(getValueFromString((String) jComboBoxMaxPoints.getSelectedItem())); } else { parent.getGraphPanelChart().getChartSettings().setMaxPointPerRow(-1); } refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxMaxPointsActionPerformed
private void jCheckBoxHideNonRepValuesActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxHideNonRepValuesActionPerformed {//GEN-HEADEREND:event_jCheckBoxHideNonRepValuesActionPerformed if (jCheckBoxHideNonRepValues.isSelected()) { parent.getGraphPanelChart().getChartSettings().setHideNonRepValLimit(getValueFromString((String) jComboBoxHideNonRepValLimit.getSelectedItem())); } else { parent.getGraphPanelChart().getChartSettings().setHideNonRepValLimit(-1); } refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxHideNonRepValuesActionPerformed
private void jCheckBoxMaxYActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxMaxYActionPerformed {//GEN-HEADEREND:event_jCheckBoxMaxYActionPerformed long value = getLongValue(jTextFieldMaxY.getText()); long oldValue = parent.getGraphPanelChart().getChartSettings().getForcedMaxY(); if (value == -1) { jTextFieldMaxY.setForeground(Color.red); } else { jTextFieldMaxY.setForeground(Color.black); } if (jCheckBoxMaxY.isSelected()) { parent.getGraphPanelChart().getChartSettings().setForcedMaxY(value); if (oldValue != value) { refreshGraphPreview(); } } else { parent.getGraphPanelChart().getChartSettings().setForcedMaxY(-1); if (oldValue != -1) { refreshGraphPreview(); } } }//GEN-LAST:event_jCheckBoxMaxYActionPerformed
private void jCheckBoxDrawMarkersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxDrawMarkersActionPerformed if (jCheckBoxDrawMarkers.isSelected()) parent.getGraphPanelChart().getChartSettings().setChartMarkers(ChartSettings.CHART_MARKERS_YES); else parent.getGraphPanelChart().getChartSettings().setChartMarkers(ChartSettings.CHART_MARKERS_NO); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxDrawMarkersActionPerformed
private void jCheckBoxLimitMaxXValueActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxLimitMaxXValueActionPerformed {//GEN-HEADEREND:event_jCheckBoxLimitMaxXValueActionPerformed parent.getGraphPanelChart().getChartSettings().setPreventXAxisOverScaling(jCheckBoxLimitMaxXValue.isSelected()); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxLimitMaxXValueActionPerformed
private void jCheckBoxPaintGradientActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxPaintGradientActionPerformed {//GEN-HEADEREND:event_jCheckBoxPaintGradientActionPerformed parent.getGraphPanelChart().getChartSettings().setDrawGradient(jCheckBoxPaintGradient.isSelected()); refreshGraphPreview(); }//GEN-LAST:event_jCheckBoxPaintGradientActionPerformed