Examples of PAPlot


Examples of jmt.framework.gui.graph.PAPlot

      JLabel label;
      JTextField field;
      JPanel mainPanel = new JPanel(new SpringLayout());
      //Vector temp = rm.getParameterValues();
      //Create graph and initialize ranges
      graph = new PAPlot(values, rm.getParameterValues(), getXLabel(), getYLabel(measureIndex));
      graph.drawPlot(true);
      XMIN = graph.getPlotXMin();
      XMAX = graph.getPlotXMax();
      //If simulation was stopped andanly one result was calculated the XMIN andX YMAX
      //may equal, the same for YMIN and YMAX. In this case adjust the XMIN, XMAX, YMIN,
View Full Code Here

Examples of jmt.framework.gui.graph.PAPlot

      samples.setToolTipText("Number of samples");
      mainPanel.add(label);
      mainPanel.add(samples);

      //Create the plot and initialize ranges
      graph = new PAPlot(values, parameterValues, getXLabel(), getYLabel(measureIndex));
      graph.drawPlot(true);
      XMIN = graph.getPlotXMin();
      XMAX = graph.getPlotXMax();
      YMIN = graph.getPlotYMin();
      YMAX = graph.getPlotYMax();
View Full Code Here

Examples of jmt.framework.gui.graph.PAPlot

          fileChooser.addChoosableFileFilter(EPSfilter);
          int r = fileChooser.showSaveDialog((Component) parent);
          if (r == JFileChooser.APPROVE_OPTION) {
            File file = fileChooser.getSelectedFile();
            if (fileChooser.getFileFilter().equals(EPSfilter)) {
              PAPlot plot = parent.getPlot();
              try {
                FileOutputStream fileStream = new FileOutputStream(file);
                plot.export(fileStream);
                fileStream.close();
              } catch (FileNotFoundException fnf) {
                JOptionPane.showMessageDialog(fileChooser, "File not found", "JMT - Error", JOptionPane.ERROR_MESSAGE);
              } catch (IOException ioe) {
                JOptionPane.showMessageDialog(fileChooser, "I/O exception", "JMT - Error", JOptionPane.ERROR_MESSAGE);
              }
            } else {
              PAPlot plot = parent.getPlot();
              BufferedImage image = plot.exportImage();
              try {
                int targetType = BufferedImage.TYPE_INT_RGB;
                BufferedImage originalImage = convertType(image, targetType);
                ImageIO.write(originalImage, "png", file);
                ImageIO.createImageOutputStream(file).close();
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.