Package org.woped.qualanalysis.sidebar.assistant.components

Examples of org.woped.qualanalysis.sidebar.assistant.components.SimpleGridBagLayout.addComponent()


    // add workflow-label
    JLabel workflowLabel = new JLabel(Messages.getString(PREFIX + "WorkflowAnalysis"));
    workflowLabel.setFont(SUBHEADER_FONT);
    workflowLabel.setBorder(BOTTOM_BORDER);
    sgbl.addComponent(analysisPanel, workflowLabel, 0, 0, 1, 1, 1, 0);

    // add workflow info
    if (qualanalysisService.isWorkflowNet()) {
      // create "correct"-icon
      correctness = new JLabel(Messages.getImageIcon(CORRECT_ICON));
View Full Code Here


      correctness = new JLabel(Messages.getImageIcon(INCORRECT_ICON));
      // add detail-button
      JLabel workflowDetails = new JLabel(Messages.getImageIcon(DETAILS_ICON));
      workflowDetails.addMouseListener(new DetailsMouseListener(sideBar, workflowPage));
      workflowDetails.setBorder(BOTTOM_BORDER);
      sgbl.addComponent(analysisPanel, workflowDetails, 2, 0, 1, 1, 0, 0);
    }
    // add icon
    correctness.setBorder(BOTTOM_RIGHT_BORDER);
    sgbl.addComponent(analysisPanel, correctness, 1, 0, 1, 1, 0, 0);
View Full Code Here

      workflowDetails.setBorder(BOTTOM_BORDER);
      sgbl.addComponent(analysisPanel, workflowDetails, 2, 0, 1, 1, 0, 0);
    }
    // add icon
    correctness.setBorder(BOTTOM_RIGHT_BORDER);
    sgbl.addComponent(analysisPanel, correctness, 1, 0, 1, 1, 0, 0);

    /*
     * Soundness
     */

 
View Full Code Here

      // add soundness-label
      JLabel soundnessLabel = new JLabel(Messages.getString(PREFIX + "SoundnessAnalysis"));
      soundnessLabel.setFont(SUBHEADER_FONT);
      soundnessLabel.setBorder(BOTTOM_BORDER);
      sgbl.addComponent(analysisPanel, soundnessLabel, 0, 1, 1, 1, 1, 1);

      // add soundness info
      // create coundness-page with further information
      SoundnessPage soundnessPage = new SoundnessPage(this, sideBar);
      if (soundnessPage.getWarningStatus()) {
View Full Code Here

       
        // add detail-button
        JLabel soundnessDetails = new JLabel(Messages.getImageIcon(DETAILS_ICON));
        soundnessDetails.addMouseListener(new DetailsMouseListener(sideBar, soundnessPage));
        soundnessDetails.setBorder(BOTTOM_BORDER);
        sgbl.addComponent(analysisPanel, soundnessDetails, 2, 1, 1, 1, 0, 1);
      }
      // add icon
      correctness.setBorder(BOTTOM_RIGHT_BORDER);
      sgbl.addComponent(analysisPanel, correctness, 1, 1, 1, 1, 0, 1);
    }
View Full Code Here

        soundnessDetails.setBorder(BOTTOM_BORDER);
        sgbl.addComponent(analysisPanel, soundnessDetails, 2, 1, 1, 1, 0, 1);
      }
      // add icon
      correctness.setBorder(BOTTOM_RIGHT_BORDER);
      sgbl.addComponent(analysisPanel, correctness, 1, 1, 1, 1, 0, 1);
    }

    /*
     * token-mistake in initial marking
     */
 
View Full Code Here

      if (qualanalysisService.getWronglyMarkedPlaces().size() > 0) {
        // add tokenMistake-label
        JLabel tokenMistakeLabel = new JLabel(Messages.getString(PREFIX_BEGINNER + "InitialMarkingMistake"));
        tokenMistakeLabel.setFont(SUBHEADER_FONT);
        tokenMistakeLabel.setBorder(BOTTOM_BORDER);
        sgbl.addComponent(analysisPanel, tokenMistakeLabel, 0, 2, 1, 1, 1, 0);
        // add tokenMistake-icon with toolTip
        JLabel tokenMistakeIcon = new JLabel(Messages.getImageIcon(WARNING_ICON));
        tokenMistakeIcon.setBorder(BOTTOM_RIGHT_BORDER);
        tokenMistakeIcon.setToolTipText(Messages.getString(PREFIX_BEGINNER + "InitialMarkingMistake.Info"));
        sgbl.addComponent(analysisPanel, tokenMistakeIcon, 1, 2, 1, 1, 0, 0);
View Full Code Here

        sgbl.addComponent(analysisPanel, tokenMistakeLabel, 0, 2, 1, 1, 1, 0);
        // add tokenMistake-icon with toolTip
        JLabel tokenMistakeIcon = new JLabel(Messages.getImageIcon(WARNING_ICON));
        tokenMistakeIcon.setBorder(BOTTOM_RIGHT_BORDER);
        tokenMistakeIcon.setToolTipText(Messages.getString(PREFIX_BEGINNER + "InitialMarkingMistake.Info"));
        sgbl.addComponent(analysisPanel, tokenMistakeIcon, 1, 2, 1, 1, 0, 0);
      }
    }

    addComponent(analysisPanel, 0, 0, 1, 1, 1, 0);
View Full Code Here

    // header
    JLabel netStatistic = new JLabel(Messages.getString(PREFIX + "NetStatistics"));
    netStatistic.setFont(HEADER_FONT);
    netStatistic.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0));
    sgbl.addComponent(infoPanel, netStatistic, 0, 0, 1, 1, 1, 0);

    // places
    clickLabel = new ClickLabel(Messages.getString(PREFIX + "NumPlaces") + COLON, qualanalysisService
        .getPlaces().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
View Full Code Here

    // places
    clickLabel = new ClickLabel(Messages.getString(PREFIX + "NumPlaces") + COLON, qualanalysisService
        .getPlaces().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
    sgbl.addComponent(infoPanel, clickLabel, 0, 1, 1, 1, 1, 0);

    count = new JLabel(String.valueOf(qualanalysisService.getPlaces().size()), JLabel.RIGHT);
    count.setFont(ITEMS_FONT);
    sgbl.addComponent(infoPanel, count, 1, 1, 1, 1, 0, 0);
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.