Package org.jbpm.formapi.shared.api.items

Examples of org.jbpm.formapi.shared.api.items.LineGraphRepresentation


        chart.draw(dataTable, options)
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        LineGraphRepresentation rep = super.getRepresentation(new LineGraphRepresentation());
        rep.setDataStructure(new ArrayList<Map.Entry<String, String>>(dataStructRep));
        rep.setDataTable(new ArrayList<List<String>>(dataTableRep));
        rep.setGraphTitle(graphTitle);
        rep.setGraphXTitle(graphXTitle);
        rep.setGraphYTitle(graphYTitle);
        return rep;
    }
View Full Code Here


    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof LineGraphRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "LineGraphRepresentation"));
        }
        super.populate(rep);
        LineGraphRepresentation grep = (LineGraphRepresentation) rep;
        this.dataStructRep = new ArrayList<Map.Entry<String, String>>(grep.getDataStructure());
        this.dataTableRep = new ArrayList<List<String>>(grep.getDataTable());
        this.graphTitle = grep.getGraphTitle();
        this.graphXTitle = grep.getGraphXTitle();
        this.graphYTitle = grep.getGraphYTitle();
        populate(this.chart);
    }
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.shared.api.items.LineGraphRepresentation

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.