Package net.datacrow.reporting.transformers

Examples of net.datacrow.reporting.transformers.XmlTransformer$Transformer


    private void applyReportSelection() {
        if (cbTransformer.isEnabled() && cbTransformer.getSelectedIndex() > -1) {
           
            cbTemplates.removeItemListener(this);
           
            XmlTransformer transformer = (XmlTransformer) cbTransformer.getSelectedItem();
            cbTemplates.removeAllItems();
            Collection<ReportTemplate> templates =
                new ReportTemplates(true).getReportFiles(transformer.getType());
           
            for (ReportTemplate rt : templates)
                cbTemplates.addItem(rt);
           
            cbTemplates.setSelectedIndex(0);
View Full Code Here


            }

            vv.setBackground(Color.WHITE);


            Transformer labelTransformer = new ChainedTransformer<String, String>(new Transformer[]{
                        new ToStringLabeller<Node>() {

                            public String transform(Node v) {
                                return v.getLabel();
                                //return ((primitives.graph.Node)(v.getVertex())).getLabel();
View Full Code Here

    DirectedSparseGraph result = new DirectedSparseGraph();

     if ( model instanceof ChainedTransformer)
     {
       Transformer[] transformers = ((ChainedTransformer) model).getTransformers();
       Transformer lastTransformer = null;
       int counter = 0;
       for ( Transformer transformer: transformers)
       {
         result.addVertex(transformer);
         if ( lastTransformer != null)
View Full Code Here

            edgesWeigth.put(edgeName, Util.stringToInteger(columns[4]));

            graphMulti.addEdge(edgeName, commiter1, commiter2, type);
        }

        Transformer trans = createWeigthTransformer(graphMulti, edgesWeigth);

        BetweennessCentrality<String, String> btwGen = new BetweennessCentrality<>(graphMulti, trans);
        ClosenessCentrality<String, String> clsGen = new ClosenessCentrality<>(graphMulti, trans);
        DegreeScorer<String> dgrGen = new DegreeScorer<>(graphMulti);
View Full Code Here

TOP

Related Classes of net.datacrow.reporting.transformers.XmlTransformer$Transformer

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.