Examples of selectNodes()


Examples of org.gephi.visualization.api.VisualizationController.selectNodes()

//        System.out.println("#Nodes: " + result.getNodeCount());
//        System.out.println("#Edges: " + result.getEdgeCount());
        if (running) {
            VisualizationController visController = Lookup.getDefault().lookup(VisualizationController.class);
            if (visController != null) {
                visController.selectNodes(result.getNodes().toArray());
                visController.selectEdges(result.getEdges().toArray());
            }
            GraphView view = result.getView();
            model.setCurrentResult(view);
        } else {
View Full Code Here

Examples of org.gephi.visualization.api.selection.SelectionManager.selectNodes()

    }

    public void selectCluster(Cluster cluster) {
        SelectionManager selectionManager = VizController.getInstance().getSelectionManager();
        selectionManager.resetSelection();
        selectionManager.selectNodes(cluster.getNodes());
    }

    public void groupCluster(Cluster cluster) {
        GraphModel gm = Lookup.getDefault().lookup(GraphController.class).getModel();
        if (gm != null) {
View Full Code Here

Examples of org.jaxen.BaseXPath.selectNodes()

    protected Object assertCountXPath2(int expectedSize, Object context, String xpathStr) throws JaxenException
    {
        log(debug,
                "  Select :: " + xpathStr);
        BaseXPath xpath = new BaseXPath(xpathStr, getNavigator());
        List results = xpath.selectNodes(getContext(context));
        log(debug,
                "    Expected Size :: " + expectedSize);
        log(debug,
                "    Result Size   :: " + results.size());
        if (expectedSize != results.size())
View Full Code Here

Examples of org.jaxen.XPath.selectNodes()

    String namespaceXPathString = "//namespace::node()";

    try
    {
      XPath xpath = new DOMXPath(namespaceXPathString);
      nlist = xpath.selectNodes(contextNode);
     
            for (int i = 0; i < nlist.size(); i++)
            {
                Node node = (Node)nlist.get(i);
                if(node.getParentNode() != null && node.getParentNode().getPrefix() != null)
View Full Code Here

Examples of org.jaxen.dom.DOMXPath.selectNodes()

        {
            Map.Entry entry = (Map.Entry) itr.next();
            xpath.addNamespace((String) entry.getKey(), (String) entry.getValue());
        }
       
        return xpath.selectNodes(node);
    }
   
    protected Object selectNode(Node node, String path) throws JaxenException
    {
        List nodes = selectNodes(node, path);
View Full Code Here

Examples of org.jaxen.dom.DOMXPath.selectNodes()

    String namespaceXPathString = "//namespace::node()";

    try
    {
      XPath xpath = new DOMXPath(namespaceXPathString);
      nlist = xpath.selectNodes(contextNode);
     
            for (int i = 0; i < nlist.size(); i++)
            {
                Node node = (Node)nlist.get(i);
                if(node.getParentNode() != null && node.getParentNode().getPrefix() != null)
View Full Code Here

Examples of org.jaxen.dom.XPath.selectNodes()

       */
    public NodeList selectNodeList(Node contextNode, String str)
    {
        try {
            XPath path = new XPath(str);
            List list = path.selectNodes((Object)contextNode);
            return new NodeListEx(list);
        } catch (Exception e){
            // ignore it
        }
        return new NodeListEx();
View Full Code Here

Examples of org.jaxen.dom4j.Dom4jXPath.selectNodes()

           
            Document doc = reader.read( args[0] );
           
            XPath xpath = new Dom4jXPath( args[1] );
           
            List results = xpath.selectNodes( doc );

            Iterator resultIter = results.iterator();
           
            System.out.println("Document :: " + args[0] );
            System.out.println("   XPath :: " + args[1] );
View Full Code Here

Examples of org.jaxen.exml.ElectricXPath.selectNodes()

        {
            Document doc = new Document( new File( args[0] ) );
           
            XPath xpath = new ElectricXPath( args[1] );
           
            List results = xpath.selectNodes( doc );
           
            Iterator resultIter = results.iterator();

            System.out.println("Document :: " + args[0] );
            System.out.println("   XPath :: " + args[1] );
View Full Code Here

Examples of org.jaxen.jdom.JDOMXPath.selectNodes()

    public void concatOccurrence(Object xmlDoc, String xpath, String concatSep, Appendable chaineConcat) throws IOException {

        try {
            JDOMXPath xp = new JDOMXPath(xpath);
            List ls = xp.selectNodes(xmlDoc);
            Iterator i = ls.iterator();
            int j = 0;
            while (i.hasNext()) {
                j++;
                String text = "";
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.