View | Details | Raw Unified | Return to bug 39652
Collapse All | Expand All

(-)/workspace/rel-2-1/src/components/org/apache/jmeter/visualizers/StatGraphVisualizer.java (+11 lines)
Lines 120-125 Link Here
120
    
120
    
121
    JLabeledTextField graphTitle = 
121
    JLabeledTextField graphTitle = 
122
        new JLabeledTextField(JMeterUtils.getResString("aggregate_graph_user_title"));
122
        new JLabeledTextField(JMeterUtils.getResString("aggregate_graph_user_title"));
123
    
124
    JLabeledTextField maxLengthXAxisLabel = 
125
        new JLabeledTextField(JMeterUtils.getResString("aggregate_graph_max_length_xaxis_label"));
126
    
123
    JLabeledTextField graphWidth = 
127
    JLabeledTextField graphWidth = 
124
        new JLabeledTextField(JMeterUtils.getResString("aggregate_graph_width"));
128
        new JLabeledTextField(JMeterUtils.getResString("aggregate_graph_width"));
125
    JLabeledTextField graphHeight = 
129
    JLabeledTextField graphHeight = 
Lines 222-227 Link Here
222
        
226
        
223
        graph.add(graphLabel);
227
        graph.add(graphLabel);
224
        graph.add(graphTitle);
228
        graph.add(graphTitle);
229
        graph.add(maxLengthXAxisLabel);
225
        graph.add(graphWidth);
230
        graph.add(graphWidth);
226
        graph.add(graphHeight);
231
        graph.add(graphHeight);
227
        graph.add(buttonpanel);
232
        graph.add(buttonpanel);
Lines 246-264 Link Here
246
    public void makeGraph() {
251
    public void makeGraph() {
247
        String wstr = graphWidth.getText();
252
        String wstr = graphWidth.getText();
248
        String hstr = graphHeight.getText();
253
        String hstr = graphHeight.getText();
254
        String lstr = maxLengthXAxisLabel.getText();
249
        if (wstr.length() == 0) {
255
        if (wstr.length() == 0) {
250
            wstr = "450";
256
            wstr = "450";
251
        }
257
        }
252
        if (hstr.length() == 0) {
258
        if (hstr.length() == 0) {
253
            hstr = "250";
259
            hstr = "250";
254
        }
260
        }
261
        if (lstr.length() == 0) {
262
            lstr = "20";
263
        }
255
        int width = Integer.parseInt(wstr);
264
        int width = Integer.parseInt(wstr);
256
        int height = Integer.parseInt(hstr);
265
        int height = Integer.parseInt(hstr);
266
        int maxLength = Integer.parseInt(lstr);
257
267
258
        graphPanel.setData(this.getData());
268
        graphPanel.setData(this.getData());
259
        graphPanel.setHeight(height);
269
        graphPanel.setHeight(height);
260
        graphPanel.setWidth(width);
270
        graphPanel.setWidth(width);
261
        graphPanel.setTitle(graphTitle.getText());
271
        graphPanel.setTitle(graphTitle.getText());
272
        graphPanel.setMaxLenght(maxLength);
262
        graphPanel.setXAxisLabels(getAxisLabels());
273
        graphPanel.setXAxisLabels(getAxisLabels());
263
        graphPanel.setXAxisTitle(columns.getText());
274
        graphPanel.setXAxisTitle(columns.getText());
264
        graphPanel.setYAxisLabels(this.yAxisLabel);
275
        graphPanel.setYAxisLabels(this.yAxisLabel);

Return to bug 39652