Examples of Node


Examples of net.sf.mrailsim.rails.Node

  }

  private void newTrackEntered( Track newTrack, Node node ) {
    // TODO Look more tracks ahead!
    Track nextTrack = null;
    Node nextNode = null;
    try {
      nextNode = newTrack.getOutgoingNode( node );
      nextTrack = nextNode.getOtherTrack( newTrack );
    } catch (Exception e) {
      // TODO Handle right
      e.printStackTrace();
      System.exit( 2 );
    }

Examples of net.sourceforge.cruisecontrol.gui.configuration.tree.nodes.Node

 
  @Override
  public void valueChanged(TreeSelectionEvent arg0) {
    // Fetch the Node instance from the argument.
    TreePath selectedPath = arg0.getNewLeadSelectionPath();
    Node nodeSelected = (Node) selectedPath.getLastPathComponent();
    dispatcher.nodeSelected(nodeSelected);
  }

Examples of net.sourceforge.htmlunit.corejs.javascript.Node

     * in the child list, e.g. if this method is called after the code
     * generator begins the tree transformation.
     */
    public List<AstNode> getStatements() {
        List<AstNode> stmts = new ArrayList<AstNode>();
        Node n = getFirstChild();
        while (n != null) {
            stmts.add((AstNode)n);
            n = n.getNext();
        }
        return stmts;
    }

Examples of net.sourceforge.javautil.groovy.builder.interceptor.annotation.Node

   */
  public PackageInstantiator(Class... classes) {
    this(getPackageNames(classes));
   
    for (Class<?> clazz : classes) {
      Node node = clazz.getAnnotation(Node.class);
      if (node != null && node.aliases().length > 0) {
        for (Alias alias : node.aliases()) {
          this.aliases.put(alias.name(), alias.type());
        }
      }
    }
  }

Examples of net.sourceforge.jpowergraph.Node

 
  public static DefaultGraph createGraph(Concept concept){
    DefaultGraph graph = new DefaultGraph();
    ArrayList <Node> nodes = new ArrayList <Node> ();
    ArrayList <Edge> edges = new ArrayList <Edge> ();      
    Node conceptNode = new ConceptNode(concept.getConceptDescription().getName());
    Node superClassRoot = new PrintNode( ApplicationResources.getString("superclasses.node.root"));
    Node subClassRoot = new PrintNode( ApplicationResources.getString("subclasses.node.root"));
    Node relationsRoot = new PrintNode( ApplicationResources.getString("relations.node.root"));
    Node instancesRoot = new PrintNode( ApplicationResources.getString("instances.node.root"));
    Node instancesOfRoot = new PrintNode( ApplicationResources.getString("instancesOf.node.root"));
    nodes.add(superClassRoot);
    nodes.add(subClassRoot);
    nodes.add(relationsRoot);
    nodes.add(instancesRoot);
    nodes.add(instancesOfRoot);
    edges.add(new LineEdge(conceptNode,superClassRoot));
    edges.add(new LineEdge(conceptNode,subClassRoot));
    edges.add(new LineEdge(conceptNode,instancesRoot));
    edges.add(new LineEdge(conceptNode,relationsRoot));
    edges.add(new LineEdge(conceptNode,instancesRoot));
    edges.add(new LineEdge(conceptNode,instancesOfRoot));
    Node relatedNode = null;
    for (Relation r : concept.getRelations().getRelations()) {
      //For each conceptDescription in relation
      for (ConceptDescription conceptDescription : r.getConceptDescriptions()) {
        final String objectConceptUri = conceptDescription.getUri();
        if(objectConceptUri!=null ){

Examples of net.sourceforge.processdash.tool.redact.HierarchyInfo.Node

        }
    }
   
    public String getTeamProjectName(String filename) {
        String projectId = getProjectIdForFile(filename);
        Node n = hierarchyInfo.findNodeForTeamProject(projectId);
        return (n == null ? null : n.newName);
    }

Examples of net.tacospice.stevenet.Node

  @Override
  public void clientConnected(NetConnection connection)
  {
    logMessage("* Connected client " + connection.getID() + ", " + connection.getRemoteAddressTCP());
    Node entityNode = server.createNode(Entity.getClassId());
    entityNode.setOwner(connection.getID());

    Entity entity = new Entity(entityNode, 0, 0);

    game.addEntity(entity);
    server.addNode(entityNode);
    eventHandler.entityCreated(entity, true);

    logMessage("  Created entity " + entityNode.getId() + "/" + entityNode.getClassId());
  }

Examples of nodebox.node.Node

    private class NodeRenderer extends JLabel implements ListCellRenderer {

        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
            assert (value instanceof Node);
            Node node = (Node) value;
            String html = "<html><b>" + StringUtils.humanizeName(node.getName()) + "</b> - " + node.getDescription() + "</html>";
            setText(html);
            if (isSelected) {
                setBackground(Theme.NODE_SELECTION_ACTIVE_BACKGROUND_COLOR);
            } else {
                setBackground(Theme.NODE_SELECTION_BACKGROUND_COLOR);
            }
            setEnabled(list.isEnabled());
            setFont(list.getFont());
            int iconSize = NetworkView.NODE_ICON_SIZE;
            int nodePadding = NetworkView.NODE_PADDING;
            BufferedImage bi = new BufferedImage(iconSize + nodePadding * 2, iconSize + nodePadding * 2, BufferedImage.TYPE_INT_ARGB);
            Graphics g = bi.createGraphics();
            g.setColor(NetworkView.portTypeColor(node.getOutputType()));
            g.fillRect(0, 0, iconSize + nodePadding * 2, iconSize + nodePadding * 2);
            g.drawImage(NetworkView.getImageForNode(node, repository), nodePadding, nodePadding, iconSize, iconSize, null, null);
            setIcon(new ImageIcon(bi));
            setBorder(Theme.BOTTOM_BORDER);
            setOpaque(true);

Examples of nodes.Node

   * @see Node
   * @deprecated
   */
  public BinarySearchTree()
  {
    root = new Node();
  }

Examples of nu.validator.saxtree.Node

        return new Element(tokenizer, ns, name, name, attributes, true, null);
    }

    @Override protected void insertFosterParentedCharacters(char[] buf,
            int start, int length, Element table, Element stackParent) throws SAXException {
        Node child = new Characters(tokenizer, buf, start, length);
        ParentNode parent = table.getParentNode();
        if (parent != null) { // always an element if not null
            parent.insertBetween(child, previousSibling(table), table);
            cachedTablePreviousSibling = child;
        } else {
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.