Exemple #1
0
  public boolean removeStrut(final WB_FrameStrut strut) {
    if ((strut.start() != this) && (strut.end() != this)) {
      return false;
    }

    struts.remove(strut);

    return true;
  }
  /**
   * Remove and add a item again. This has to be done in case the value of a item changed.
   *
   * @param item the display item to remove and add again
   */
  public void readd(final DisplayItem item) {
    if (item == null) {
      assert false : "Trying to add NULL displayItem";
      return;
    }

    synchronized (display) {
      display.remove(item);
      insertSorted(item);
    }
  }
Exemple #3
0
 public void RemoveAttackClan(String attack_clan_name) {
   if (_attackClanList.contains(attack_clan_name)) {
     _attackClanList.remove(attack_clan_name);
   }
 }
Exemple #4
0
 public void removeStrut(final int index) {
   if ((index < 0) || (index >= struts.size())) {
     throw new IllegalArgumentException("Index outside of strut range.");
   }
   struts.remove(index);
 }
 /**
  * Remove item from screen
  *
  * @param item
  */
 public void remove(final DisplayItem item) {
   synchronized (display) {
     display.remove(item);
     removedAreaList.add(new Rectangle(item.getLastDisplayRect()));
   }
 }
Exemple #6
0
 /**
  * Remove a node from the list of tiles that were not fully checked yet.
  *
  * @param node the node that shall be removed from the list
  */
 private void removeFromOpen(final PathNode node) {
   node.setOpen(false);
   open.remove(node);
 }
Exemple #7
0
 /**
  * Remove a node from the list of tiles that were considered already.
  *
  * @param node the node that shall be removed from the list
  */
 private void removeFromClosed(final PathNode node) {
   node.setClosed(false);
   closed.remove(node);
 }