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

    struts.remove(strut);

    return true;
  }
예제 #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);
    }
  }
예제 #3
0
 public void RemoveAttackClan(String attack_clan_name) {
   if (_attackClanList.contains(attack_clan_name)) {
     _attackClanList.remove(attack_clan_name);
   }
 }
예제 #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);
 }
예제 #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()));
   }
 }
예제 #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);
 }
예제 #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);
 }