Package jmt.engine.jwat.input

Examples of jmt.engine.jwat.input.ProgressMonitorShow


        Redraw = false;
        Graphics grap = chart.getGraphics();
        grap.setColor(Color.GRAY);
        grap.fillRect(0, 0, WIDTH_TOT * model.getMatrix().getNumVariables() + 1, HEIGHT_TOT * model.getMatrix().getNumVariables() + 1);
        grap.drawImage(chart, 0, 0, null);
        TimeConsumingWorker worker = new TimeConsumingWorker(new ProgressMonitorShow(this, "Constructin Dispersion Matrix...", 1)) {
          @Override
          public Object construct() {
            if (model.getMatrix() != null) {
              Graphics g = chart.getGraphics();
              VariableNumber Elenco[] = model.getMatrix().getVariables();
View Full Code Here


      }
    }
    // Disegno punti
    if (first) {
      first = false;
      new TimeConsumingWorker(new ProgressMonitorShow(this, "Plotting observations ...", 100)) {
        @Override
        public Object construct() {
          Graphics2D g1 = (Graphics2D) graph.getGraphics();

          g1.setColor(Color.BLACK);
View Full Code Here

      }
    }
    // Disegno punti
    if (first) {
      first = false;
      new TimeConsumingWorker(new ProgressMonitorShow(this, "Plotting observations ...", 100)) {
        @Override
        public Object construct() {
          Graphics2D g1 = (Graphics2D) graph.getGraphics();

          g1.setColor(Color.BLACK);
View Full Code Here

          demoFile = new File(".", DEMO_FILE);
        }
        //Calls loader
        try {
          Loader.readData(demoFile.getAbsolutePath(), Loader.loadParameter(demoFile.getParentFile(), TEMP_DEMO_NAME_FITTING),
              new ProgressMonitorShow(LoadDemoFittingPanel.this, "Loading Data...", 1000), new InputStatusListener());
          //Loader.readData("D:/" + TEMP_DEMO_NAME_FITTING + "Data.jwat", Loader.loadParameter(TEMP_DEMO_NAME_FITTING),
            //    new ProgressMonitorShow(LoadDemoFittingPanel.this, "Loading Data...", 1000), new InputStatusListener());
        } catch (FileNotFoundException ee) {
          JOptionPane.showMessageDialog(LoadDemoFittingPanel.this, "Loading aborted. File not found.", "ABORT!!", JOptionPane.WARNING_MESSAGE);
        } catch (IOException ee) {
View Full Code Here

        Redraw = false;
        Graphics grap = chart.getGraphics();
        grap.setColor(Color.GRAY);
        grap.fillRect(0, 0, WIDTH_TOT * model.getMatrix().getNumVariables() + 1, HEIGHT_TOT * model.getMatrix().getNumVariables() + 1);
        grap.drawImage(chart, 0, 0, null);
        TimeConsumingWorker worker = new TimeConsumingWorker(new ProgressMonitorShow(this, "Constructin Dispersion Matrix...", 1)) {
          @Override
          public Object construct() {
            Graphics g = chart.getGraphics();
            VariableNumber Elenco[] = model.getMatrix().getVariables();
            try {
View Full Code Here

            trasf = VariableNumber.MINMAX;
          }
          if (stdDevT.isSelected()) {
            trasf = VariableNumber.STDEV;
          }
          MainKMean eng = new MainKMean(new ProgressMonitorShow(parent, "Processing...", 1), model.getMatrix(), parent.getVarSelected(),
          //numClust.getValue(),
              //numIteration.getValue(),
              ((Integer) numOfClust.getValue()).intValue(), ((Integer) numOfIter.getValue()).intValue(), trasf);
          eng.addStatusListener(lst);
          eng.start();
          ((JWatWizard) parent.getParentWizard()).setEnableButton("Solve", false);
        } else {
          JOptionPane.showMessageDialog(parent, "Select at least two variables to proceed with clustering", "Warning",
              JOptionPane.WARNING_MESSAGE);
        }
      }
    });
    ((MainJwatWizard) parent.getParentWizard()).setActionTool(new AbstractAction() {
      /**
       *
       */
      private static final long serialVersionUID = 1L;
      {
        putValue(Action.SHORT_DESCRIPTION, "Clusterize");
        putValue(Action.SMALL_ICON, JMTImageLoader.loadImage("Sim"));

        putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
        putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_L));
      }

      public void actionPerformed(ActionEvent e) {
        if (parent.getVarSelected().length >= 2) {
          short trasf = VariableNumber.NONE;
          if (minmaxT.isSelected()) {
            trasf = VariableNumber.MINMAX;
          }
          if (stdDevT.isSelected()) {
            trasf = VariableNumber.STDEV;
          }
          MainKMean eng = new MainKMean(new ProgressMonitorShow(parent, "Processing...", 1), model.getMatrix(), parent.getVarSelected(),
          //numClust.getValue(),
              //numIteration.getValue(),
              ((Integer) numOfClust.getValue()).intValue(), ((Integer) numOfIter.getValue()).intValue(), trasf);
          eng.addStatusListener(lst);
          eng.start();
View Full Code Here

            trasf = VariableNumber.MINMAX;
          }
          if (stdDevT.isSelected()) {
            trasf = VariableNumber.STDEV;
          }
          MainFuzzyKMean eng = new MainFuzzyKMean(new ProgressMonitorShow(parent, "Processing...", 1), model.getMatrix(), parent
              .getVarSelected(),
          //numClust.getValue(),
              //numIteration.getValue(),
              //FuzzyLvl.getValue(),
              ((Integer) numOfClust.getValue()).intValue(), ((Integer) numOfIter.getValue()).intValue(), ((Double) fuzzyLevel
                  .getValue()).intValue(), trasf);
          eng.addStatusListener(lst);
          eng.start();
          ((JWatWizard) parent.getParentWizard()).setEnableButton("Solve", false);
        } else {
          JOptionPane.showMessageDialog(parent, "Select at least two variables to proceed with clustering", "Warning",
              JOptionPane.WARNING_MESSAGE);
        }
      }
    });
    ((MainJwatWizard) parent.getParentWizard()).setActionTool(new AbstractAction() {
      /**
       *
       */
      private static final long serialVersionUID = 1L;
      {
        putValue(Action.SHORT_DESCRIPTION, "Clusterize");
        putValue(Action.SMALL_ICON, JMTImageLoader.loadImage("Sim"));

        putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
        putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_L));
      }

      public void actionPerformed(ActionEvent e) {
        if (parent.getVarSelected().length >= 2) {
          short trasf = VariableNumber.NONE;
          if (minmaxT.isSelected()) {
            trasf = VariableNumber.MINMAX;
          }
          if (stdDevT.isSelected()) {
            trasf = VariableNumber.STDEV;
          }
          MainFuzzyKMean eng = new MainFuzzyKMean(new ProgressMonitorShow(parent, "Processing...", 1), model.getMatrix(), parent
              .getVarSelected(),
          //numClust.getValue(),
              //numIteration.getValue(),
              //FuzzyLvl.getValue(),
              ((Integer) numOfClust.getValue()).intValue(), ((Integer) numOfIter.getValue()).intValue(), ((Double) fuzzyLevel
View Full Code Here

        }
        //Calls loader
        try {
         
          Loader.readData(demoFile.getAbsolutePath(), Loader.loadParameter(demoFile.getParentFile(), TEMP_DEMO_NAME_WA),
              new ProgressMonitorShow(LoadDemoPanel.this, "Loading Data...", 1000), new InputStatusListener());
          //Loader.readData("D:/" + TEMP_DEMO_NAME_WA + "Data.jwat", Loader.loadParameter(TEMP_DEMO_NAME_WA),
              //    new ProgressMonitorShow(LoadDemoPanel.this, "Loading Data...", 1000), new InputStatusListener());
        } catch (FileNotFoundException ee) {
          JOptionPane.showMessageDialog(LoadDemoPanel.this, "Loading aborted. File not found.", "ABORT!!", JOptionPane.WARNING_MESSAGE);
        } catch (IOException ee) {
View Full Code Here

        Redraw = false;
        Graphics grap = chart.getGraphics();
        grap.setColor(Color.GRAY);
        grap.fillRect(0, 0, WIDTH_TOT * model.getMatrix().getNumVariables() + 1, HEIGHT_TOT * model.getMatrix().getNumVariables() + 1);
        grap.drawImage(chart, 0, 0, null);
        TimeConsumingWorker worker = new TimeConsumingWorker(new ProgressMonitorShow(this, "Constructin Dispersion Matrix...", 1)) {
          @Override
          public Object construct() {
            Graphics g = chart.getGraphics();
            VariableNumber Elenco[] = model.getMatrix().getVariables();
            try {
View Full Code Here

      }
    }
    // Disegno punti
    if (first) {
      first = false;
      new TimeConsumingWorker(new ProgressMonitorShow(this, "Plotting observations ...", 100)) {
        @Override
        public Object construct() {
          Graphics2D g1 = (Graphics2D) graph.getGraphics();

          g1.setColor(Color.BLACK);
View Full Code Here

TOP

Related Classes of jmt.engine.jwat.input.ProgressMonitorShow

Copyright © 2018 www.massapicom. 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.