public void remove(T graphic){
synchronized (mLock) {
    mGraphics.remove(graphic);
    if (mFirstGraphic != null && mFirstGraphic.equals(graphic)) {
      mFirstGraphic=null;
    }
  }
  postInvalidate();
}

public void remove ( T graphic ) { synchronized ( mLock ) { mGraphics . remove ( graphic ) ; if ( mFirstGraphic != null && mFirstGraphic . equals ( graphic ) ) { mFirstGraphic = null ; } } postInvalidate ( ) ; }
removes a graphic from the overlay .
