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

    struts.remove(strut);

    return true;
  }
Exemplo n.º 2
0
  /**
   * 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);
    }
  }
Exemplo n.º 3
0
 public void RemoveAttackClan(String attack_clan_name) {
   if (_attackClanList.contains(attack_clan_name)) {
     _attackClanList.remove(attack_clan_name);
   }
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 /**
  * Remove item from screen
  *
  * @param item
  */
 public void remove(final DisplayItem item) {
   synchronized (display) {
     display.remove(item);
     removedAreaList.add(new Rectangle(item.getLastDisplayRect()));
   }
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }