Examples of removeFromParent()


Examples of com.jme.scene.Spatial.removeFromParent()

  public boolean remove(SynchronizeRemoveMessage srm, Object obj) {
    System.out.println("REMOVING: " + obj);
    //cast to a Spatial and remove from the scene graph
    Spatial s = (Spatial) obj;
    TankGame.GAME.lock();
    boolean removed = s.removeFromParent();
    TankGame.GAME.unlock();
    return removed;
  }
 
  public void kill() {
View Full Code Here

Examples of com.jme.scene.shape.Teapot.removeFromParent()

        try {
          Thread.sleep(5*1000);
        } catch (InterruptedException e) {}
        TankGame.NETWORK.unregister(teapot);
        TankGame.GAME.lock();
        teapot.removeFromParent();
        TankGame.GAME.unlock();
      }
    }.start();
   
    try {
View Full Code Here

Examples of com.jme3.scene.Spatial.removeFromParent()

        }
        //remove leftover spatials
        for (Map.Entry<PhysicsRigidBody, Spatial> entry : oldObjects.entrySet()) {
            PhysicsRigidBody object = entry.getKey();
            Spatial spatial = entry.getValue();
            spatial.removeFromParent();
        }
    }

    private void updateJoints() {
        HashMap<PhysicsJoint, Spatial> oldObjects = joints;
View Full Code Here

Examples of com.projity.grouping.core.Node.removeFromParent()

          }
        }
      });
    for (Iterator i=freeAssignments.iterator();i.hasNext();){
      Node node=(Node)i.next();
      node.removeFromParent();
      System.out.println("restoring assignment: "+node.getImpl());
      AssignmentService.getInstance().connect(node,this,isUndo(actionType));
    }

  }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.removeFromParent()

  }

  protected void setItemIcon(XElement item, ImageResource icon) {
    XElement node = item.selectNode("." + style.tabImage());
    if (node != null) {
      node.removeFromParent();
    }
    if (icon != null) {
      Element e = IconHelper.getElement(icon);
      e.setClassName(style.tabImage());
      item.appendChild(e);
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.removeFromParent()

  public void setIcon(XElement parent, ImageResource icon) {
    XElement anchor = getAnchor(parent);
    XElement oldIcon = parent.selectNode("." + style.menuItemIcon());
    if (oldIcon != null) {
      oldIcon.removeFromParent();
    }
    if (icon != null) {
      Element e = IconHelper.getElement(icon);
      e.addClassName(style.menuItemIcon());
      anchor.insertChild(e, 0);
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.ui.layout.ChildComponentContainer.removeFromParent()

        for (Widget w : nonRenderedWidgets.keySet()) {
            ChildComponentContainer childComponentContainer = widgetToComponentContainer
                    .get(w);
            paintableToCell.remove(w);
            widgetToComponentContainer.remove(w);
            childComponentContainer.removeFromParent();
            client.unregisterPaintable((Paintable) w);
        }
        nonRenderedWidgets = null;

        rendering = false;
View Full Code Here

Examples of edu.ups.gamedev.player.PlayerSphere.removeFromParent()

   *         false</code> otherwise
   */
  public boolean remove(SynchronizeRemoveMessage srm, Object obj) {
    PlayerSphere s = (PlayerSphere)obj;
    System.out.println("Removing player " + s.getName());
    return s.removeFromParent();
  }
 
  /**
   * Generates a new {@link edu.ups.gamedev.player.PlayerSphere PlayerSphere} for
   * remote players and gives it default values. Note that all remote spheres will
View Full Code Here

Examples of edu.ups.gamedev.player.Tank.removeFromParent()

   *         false</code> otherwise
   */
  public boolean remove(SynchronizeRemoveMessage srm, Object obj) {
    Tank tank = (Tank)obj;
    System.out.println("Removing player " + tank.getName());
    return tank.removeFromParent();
  }
 
  /**
   * Generates a new {@link edu.ups.gamedev.player.Tank Tank} for remote players
   * and gives it default values and the color that is passed in.
View Full Code Here

Examples of elemental.dom.Node.removeFromParent()

      for (int i = 0; i < m; i++) {
        GwtRecompile module = modules.get(i);
        Node duplicate = existing.get(module.getModule());
        if (duplicate != null) {
          // TODO check revision # and take freshest
          duplicate.removeFromParent();
        }
        OptionElement opt = createOption(module, i == 0);
        list.appendChild(opt);
      }
    }
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.