Examples of ClickLabel


Examples of org.woped.qualanalysis.sidebar.assistant.components.ClickLabel

     */
   
    ModelElementContainer mec = editor.getModelProcessor().getElementContainer();

    JPanel infoPanel = new JPanel();
    ClickLabel clickLabel = null;
    JLabel count = null;
    infoPanel.setBackground(Color.WHITE);
    infoPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 50, 0));
    infoPanel.setLayout(sgbl);

    // 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);
    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);

    // transitions
    clickLabel = new ClickLabel(Messages.getString(PREFIX + "NumTransitions") + COLON, qualanalysisService
        .getTransitions().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
    sgbl.addComponent(infoPanel, clickLabel, 0, 2, 1, 1, 1, 0);

    count = new JLabel((int)calculateT(mec)+"", JLabel.RIGHT);
    count.setFont(ITEMS_FONT);
    sgbl.addComponent(infoPanel, count, 1, 2, 1, 1, 0, 0);

    // operators
    clickLabel = new ClickLabel(SUB_POINT + Messages.getString(PREFIX + "NumOperators") + COLON,
        qualanalysisService.getOperators().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
    sgbl.addComponent(infoPanel, clickLabel, 0, 3, 1, 1, 1, 0);

    count = new JLabel(String.valueOf(qualanalysisService.getOperators().size()), JLabel.RIGHT);
    count.setFont(ITEMS_FONT);
    sgbl.addComponent(infoPanel, count, 1, 3, 1, 1, 0, 0);

    // subprocesses
    clickLabel = new ClickLabel(SUB_POINT + Messages.getString(PREFIX + "NumSubprocesses") + COLON,
        qualanalysisService.getSubprocesses().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
    sgbl.addComponent(infoPanel, clickLabel, 0, 4, 1, 1, 1, 0);

    count = new JLabel(String.valueOf(qualanalysisService.getSubprocesses().size()), JLabel.RIGHT);
    count.setFont(ITEMS_FONT);
    sgbl.addComponent(infoPanel, count, 1, 4, 1, 1, 0, 0);
View Full Code Here

Examples of org.woped.qualanalysis.sidebar.assistant.components.ClickLabel

    this.add(netStatisticLabel, BorderLayout.NORTH);

    // places

    ClickLabel clickLabel = new ClickLabel(
        Messages.getString(PREFIX_QUALANALYSIS + "NumPlaces") + ":",
        qualanalysisService.getPlaces().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
    statistics.add(clickLabel);

    JLabel count = new JLabel(String.valueOf(qualanalysisService
        .getPlaces().size()), JLabel.RIGHT);
    count.setFont(ITEMS_FONT);
    statistics.add(count);

    // transitions

    clickLabel = new ClickLabel(Messages.getString(PREFIX_QUALANALYSIS
        + "NumTransitions")
        + ":", qualanalysisService.getTransitions().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
    statistics.add(clickLabel);

    count = new JLabel((int) request.calculateT() + "", JLabel.RIGHT);
    count.setFont(ITEMS_FONT);
    statistics.add(count);

    // operators

    clickLabel = new ClickLabel(SUB_POINT
        + Messages.getString(PREFIX_QUALANALYSIS + "NumOperators")
        + ":", qualanalysisService.getOperators().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
    statistics.add(clickLabel);

    count = new JLabel(String.valueOf(qualanalysisService.getOperators()
        .size()), JLabel.RIGHT);
    count.setFont(ITEMS_FONT);
    statistics.add(count);

    // subprocesses

    clickLabel = new ClickLabel(SUB_POINT
        + Messages.getString(PREFIX_QUALANALYSIS + "NumSubprocesses")
        + ":", qualanalysisService.getSubprocesses().iterator(), editor);
    clickLabel.setFont(ITEMS_FONT);
    statistics.add(clickLabel);

    count = new JLabel(String.valueOf(qualanalysisService.getSubprocesses()
        .size()), JLabel.RIGHT);
    count.setFont(ITEMS_FONT);
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.