Package net.sourceforge.processdash.data

Examples of net.sourceforge.processdash.data.ListData


                comboBox.removeAllItems();
               
                TreePath path = getTree().getPathForRow(row);
                if (path != null) {
                    EVTask task = (EVTask) path.getLastPathComponent();
                    ListData types = task.getAcceptableNodeTypes();
                    if (types != null) {
                        for (int i = 1;  i < types.size();  i++) {
                            String oneType = (String) types.get(i);
                            if (oneType.startsWith("(") && oneType.endsWith(")"))
                                continue;
                            comboBox.addItem(oneType);
                        }
                    }
View Full Code Here


    public String scrambleProbeList(String value) {
        if (value == null || value.length() == 0)
            return value;

        List<String> list = StringData.create(value).asList().asList();
        ListData newVal = new ListData();
        for (String elem : list)
            newVal.add(pathNameMapper.getString(elem));
        return newVal.saveString().substring(1);
    }
View Full Code Here

     *
     * This method <b>must</b> be thread-safe.
     */
    public Object call(java.util.List arguments, ExpressionContext context)
    {
        ListData result = new ListData();
        Iterator i = new HashSet(collapseLists(arguments, 0)).iterator();
        while (i.hasNext())
            result.add(i.next());

        return result;
    }
View Full Code Here

    @EnabledFor("/Task Lists$")
    public String hashRollupTaskListSpec(String value)
            throws MalformedValueException {
        List<String> taskLists = StringData.create(value).asList().asList();
        ListData newVal = new ListData();
        for (String elem : taskLists) {
            elem = taskListMapper.hashTaskListName(elem);
            newVal.add(elem);
        }
        return newVal.saveString().substring(1);
    }
View Full Code Here

    @Override
    public Object call(List arguments, ExpressionContext context) {
        String name = asString(getArg(arguments, 0));
        String targetDataName = context.resolveName(name);

        ListData result = new ListData();
        for (String label : Dbautolabels.AUTO_LABEL_NAMES) {
            result.add(TaskLabeler.LABEL_PREFIX + label);
            result.add(TaskLabeler.LABEL_HIDDEN_MARKER);
            result.add(DEFERRED_DATA_MARKER);
            result.add(DEFERRED_TOKEN_PREFIX + targetDataName);
        }
        return result;
    }
View Full Code Here

        try {
            script = (CompiledScript) arguments.get(0);
        } catch (ClassCastException cce) { }
        if (script == null) return null;

        ListData result = new ListData();
        LocalExpressionContext lContext = new LocalExpressionContext(context);
        ListStack stack = new ListStack();
        Iterator i = collapseLists(arguments, 1).iterator();
        Object item;
        while (i.hasNext()) try {
View Full Code Here

    protected void writeHTML() throws IOException {
        writeHTMLHeader("Plan.Title");

        // get information about the current process
        ListData overheadPhases = getProcessList("Overhead_Phase_List");
        ListData failurePhases = getProcessList("Failure_Phase_List");

        // write the size charts
        if (metricIsDefined("SIZE_METRIC_NAME")) {
            writeChartHTML(LINE_CHART, SIZE_CHART);
            writeChartHTML(LINE_CHART, SIZE_ERR_CHART);
        }

        // write the total time charts
        writeChartHTML(LINE_CHART, TIME_CHART);
        writeChartHTML(LINE_CHART, TIME_ERR_CHART);

        // write overhead time charts
        for (int i = 0;   i < overheadPhases.size();   i++)
            writeChartHTML(LINE_CHART, PCT_TIME_CHART,
                           fmtArg("phase", overheadPhases.get(i)));
        if (overheadPhases.size() > 1)
            writeChartHTML(LINE_CHART, PCT_OVERHEAD_TIME_CHART);

        // write failure time charts
        for (int i = 0;   i < failurePhases.size();   i++)
            writeChartHTML(LINE_CHART, PCT_TIME_CHART,
                           fmtArg("phase", failurePhases.get(i)));
        if (failurePhases.size() > 1)
            writeChartHTML(LINE_CHART, PCT_FAILURE_TIME_CHART);

        // write time in phase chart
        writeChartHTML(PIE_CHART, PHASE_TIME_CHART);
View Full Code Here

        out.println("colorScheme=byPhase");
        out.println("skipRowHdr=true");
        out.print("title=");
        out.println(resources.getString("Plan.Time_In_Phase_Title"));

        ListData phaseList = getProcessList("Phase_List");
        for (int i = 0;   i < phaseList.size();   i++) {
            String num = Integer.toString(i + 1);
            String phaseName = (String) phaseList.get(i);
            String displayName = Translator.translate(phaseName);
            out.print("h" + num + "=");
            out.println(displayName);
            out.print("d" + num + "=");
            out.print(phaseName);
View Full Code Here

        chartData.setColName(0, "Phase");
        chartData.setColName(1, "Time");
        String title = resources.getString(titleRes);

        String dataName = "Workflow_Chart///" + type + "_Time_In_Phase";
        ListData l = new ListData();
        l.add(chartData);
        getDataContext().putValue(dataName, l);

        StringBuffer fullUri = new StringBuffer("full.htm");
        HTMLUtils.appendQuery(fullUri, "chart", "pie");
        HTMLUtils.appendQuery(fullUri, "useData", dataName);
View Full Code Here

        SimpleData sd = data.getSimpleValue(SETTINGS_PREFIX + taskListID
                + CHART_ORDERING_SETTING);
        if (sd == null)
            sd = data.getSimpleValue(SETTINGS_PREFIX + GLOBAL_QUALIFIER
                    + CHART_ORDERING_SETTING);
        ListData l = ListData.asListData(sd);
        return (l == null ? Collections.EMPTY_LIST : l.asList());
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.data.ListData

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.