Package graphmatcher.matcher

Examples of graphmatcher.matcher.MatchingResult


        Graph template = _inputPanel.getTemplateGraph();

        String matcherID = optionPanel.getSelectedMatcherID();
        AbstractMatcher matcher = MatcherFactory.createMatcher(matcherID, pattern, template);
        MatchingResult matchingResult = matcher.match(optionPanel.getMatchingOptions());
        _matchingPanel.setOptions(_guiOptionPanel.showMatchingEdges(), _guiOptionPanel.showIndices(),
            _guiOptionPanel.showTransformedPattern());
        _matchingPanel.setMatchingResult(matchingResult);
        resultPanel.setMatchingResult(matchingResult);
      }
View Full Code Here


            template);
        Runnable matchingTask = new Runnable() {
          @Override
          public void run() {
            try {
              MatchingResult matchingResult = matcher.match(options);
              matchingResults[currentJ] = matchingResult;

              synchronized (progressBar) {
                progressBar.setValue(progressBar.getValue() + 1);
              }
View Full Code Here

    }
    if (value instanceof String) {
      String graphName = (String) value;
      return new JLabel(graphName);
    }
    MatchingResult matchingResult = (MatchingResult) value;
    String matchedGraphName = matchingResult.getTemplate().toString();
    JLabel result = new JLabel(matchedGraphName);
    result.setToolTipText("Abstand: " + (1 - matchingResult.getQuality()));
    if (column > 0 && matchedGraphName != null) {
      result.setOpaque(true);
      String graphName = (String) table.getModel().getValueAt(row, 0);
      Color color;
      if (graphName.substring(0, 4).equals(matchedGraphName.substring(0, 4))) {
View Full Code Here

        int row = table.getSelectedRow();
        Object value = model.getValueAt(row, column);
        if (!(value instanceof MatchingResult)) {
          return;
        }
        MatchingResult result = (MatchingResult) value;
        if (dialog != null) {
          dialog.dispose();
        }
        dialog = new JDialog();
        dialog.setLocation(GraphMatcherTester.this.getX() + GraphMatcherTester.this.getWidth(), 0);
View Full Code Here

TOP

Related Classes of graphmatcher.matcher.MatchingResult

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.