Examples of addNode()


Examples of org.openstreetmap.josm.data.osm.DatasetFactory.addNode()

        parent1.put("type", "parent1");
        parent1.put("name", "name_parent1");
        Relation parent2 = ds.addRelation(2);
        parent2.put("type", "parent2");
        parent2.put("name", "name_parent2");
        Node child = ds.addNode(1);
        parent1.addMember(new RelationMember("", child));
        parent2.addMember(new RelationMember("", child));

        StringBuilder sb = new StringBuilder();
        TemplateEntry entry = parser.parse();
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.Way.addNode()

            .getCoordinates()) {
          Point p = f.createPoint(coordenada);
          p = (Point) JTS.transform(p,
              CRS.findMathTransform(targetCRS, sourceCRS));
          LatLon ll = new LatLon(p.getY(), p.getX());
          way.addNode(new Node(ll));
          // if (log.isTraceEnabled())
          // BasicWindow.showOnMap(ll, 1);
        }
        res.add(way);
      }
View Full Code Here

Examples of org.patika.mada.util.CausativePath.addNode()

   
    CausativePath compPath = new CausativePath();
   
    for (Node node : path)
    {
      compPath.addNode(node);

      if (node.hasLabel(EDGE))
      {
        compPath.addEdge((Edge) node.getLabel(EDGE));
      }
View Full Code Here

Examples of org.patika.mada.util.Path.addNode()

    Path path = new Path();

    for (Node node : currPath)
    {
      path.addNode(node);

      if (node.hasLabel(EDGE))
      {
        path.addEdge((Edge) node.getLabel(EDGE));
      }
View Full Code Here

Examples of org.pentaho.platform.api.repository2.unified.data.node.DataNode.addNode()

        throw new IllegalArgumentException();
      }
    }

    for ( DataNodeDto childNodeDto : nodeDto.childNodes ) {
      node.addNode( toDataNode( childNodeDto ) );
    }

    return node;
  }
View Full Code Here

Examples of org.richfaces.component.UITree.addNode()

          draggedNode.setData(dropEvent.getDragValue().toString());
      }
     
      // generate new node id
      Object id = getNewId(destTree.getTreeNode(dropNodeKey));
      destTree.addNode(dropNodeKey, draggedNode, id, state)
    }
   
    AjaxContext ac = AjaxContext.getCurrentInstance();
    // Add destination tree to reRender
    try {
View Full Code Here

Examples of org.semanticweb.owlapi.reasoner.impl.OWLClassNodeSet.addNode()

            for (OWLOntology ontology : getRootOntology().getImportsClosure()) {
                for (OWLDisjointClassesAxiom ax : ontology
                        .getDisjointClassesAxioms(ce.asOWLClass())) {
                    for (OWLClassExpression op : ax.getClassExpressions()) {
                        if (!op.isAnonymous()) {
                            nodeSet.addNode(getEquivalentClasses(op));
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of org.semanticweb.owlapi.reasoner.impl.OWLDataPropertyNodeSet.addNode()

            for (OWLDisjointDataPropertiesAxiom axiom : ontology
                    .getDisjointDataPropertiesAxioms(pe.asOWLDataProperty())) {
                for (OWLDataPropertyExpression dpe : axiom
                        .getPropertiesMinus(pe)) {
                    if (!dpe.isAnonymous()) {
                        result.addNode(dataPropertyHierarchyInfo
                                .getEquivalents(dpe.asOWLDataProperty()));
                        result.addAllNodes(getSubDataProperties(
                                dpe.asOWLDataProperty(), false).getNodes());
                    }
                }
View Full Code Here

Examples of org.semanticweb.owlapi.reasoner.impl.OWLNamedIndividualNodeSet.addNode()

                            .getClassAssertionAxioms(curCls)) {
                        OWLIndividual individual = axiom.getIndividual();
                        if (!individual.isAnonymous()) {
                            if (getIndividualNodeSetPolicy().equals(
                                    IndividualNodeSetPolicy.BY_SAME_AS)) {
                                result.addNode(getSameIndividuals(individual
                                        .asOWLNamedIndividual()));
                            } else {
                                result.addNode(new OWLNamedIndividualNode(
                                        individual.asOWLNamedIndividual()));
                            }
View Full Code Here

Examples of prefuse.data.Graph.addNode()

    public static Graph getNodes(int n) {
        Graph g = new Graph();
        g.getNodeTable().addColumns(LABEL_SCHEMA);
       
        for ( int i=0; i < n; i++ ) {
            Node node = g.addNode();
            node.setString(LABEL, String.valueOf(i));
        }
        return g;
    }
   
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.