// (c) MIT 2003.  All rights reserved.

// $Id: NotMeFilter.java,v 1.3 2003/03/06 00:40:39 moltmans Exp $
// Time-stamp: <2000-03-11 18:59:37 moltmans>
package rec.sys;


/**
 * This is used by the GeometryCalculator and is applied to the
 *   list of visible widgets to grab a useful widget as defined by
 *   this function.
 *
 */
public class NotMeFilter implements GeoFunction
{
  Widget me_wid;

  public NotMeFilter( Widget vw )
  {
    me_wid = vw;
  }

  /**
   * Return if this widget is not the me wid.
   */
  public boolean check( VisibleWidget w )
  {
    return !  me_wid.equals( w );
  }



}

////////////////////////////////////////////////////////////////////////////////
