Examples of LineChart


Examples of org.apache.jmeter.testelement.LineChart

        add(options,BorderLayout.CENTER);
    }

    @Override
    public TestElement createTestElement() {
        LineChart element = new LineChart();
        modifyTestElement(element);
        return element;
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.LineChart

    }

    @Override
    public void modifyTestElement(TestElement element) {
        this.configureTestElement(element);
        LineChart bc = (LineChart)element;
        bc.setXAxis(xItems.getText());
        bc.setYAxis(yItems.getText());
        bc.setXLabel(xAxisLabel.getText());
        bc.setYLabel(yAxisLabel.getText());
        bc.setCaption(caption.getText());
        bc.setURLs(urls.getText());
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.LineChart

    }

    @Override
    public void configure(TestElement element) {
        super.configure(element);
        LineChart bc = (LineChart)element;
        xItems.setText(bc.getXAxis());
        yItems.setText(bc.getYAxis());
        xAxisLabel.setText(bc.getXLabel());
        yAxisLabel.setText(bc.getYLabel());
        caption.setText(bc.getCaption());
        urls.setText(bc.getURLs());
    }
View Full Code Here

Examples of org.radargun.reporting.html.LineChart

* @author Radim Vansa <rvansa@redhat.com>
*/
public class LineChartTest {
   @Test
   public void test() {
      LineChart chart = new LineChart("foos", "bars");
      Random random = new Random();
      for (int category = 0; category < 3; category++) {
         double lastValue = 0, lastDev = 1;
         for (int i = 0; i < 30; ++i) {
            lastValue = lastValue + (random.nextBoolean() ? 1 : -1);
            lastDev = lastDev + random.nextDouble() - 0.3;
            chart.addValue(lastValue, lastDev, "Serie" + category, i, String.valueOf(Math.pow(2, i)));
         }
      }
      try {
         chart.setHeight(500).setWidth(600).save("/tmp/foobar.png");
      } catch (IOException e) {
         e.printStackTrace();
      }
   }
View Full Code Here

Examples of se.sics.mspsim.extutil.jfreechart.LineChart

        }
      } else if ("type".equals(cmd)) {
        if ("line-sample".equals(parts[1])) {
          dataHandler = new LineSampleChart();
        } else if ("line".equals(parts[1])) {
          dataHandler = new LineChart();
        } else {
          context.err.println("Unknown window data handler type: " + parts[1]);
        }
        if (dataHandler != null) {
          System.out.println("Replacing window data handler! " + parts[1] + " " + dataHandler);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.