public boolean fireMapMousePressed(MouseEvent evt){
  if (DEBUG) {
    logger.fine("MapMouseSupport.fireMapMousePressed()");
  }
  boolean consumed=false;
  if (DEBUG) {
    logger.fine("  -- has proxy (" + (proxy != null) + ") -- shift used ("+ evt.isShiftDown()+ ")");
  }
  if (proxy == null || evt.isShiftDown() || (proxyDistributionMask & PROXY_DISTRIB_MOUSE_PRESSED) > 0) {
    evt=new MapMouseEvent(getParentMode(),evt);
    if (DEBUG && proxy != null && evt.isShiftDown()) {
      logger.fine("MMS.fireMapMousePressed(): proxy enabled, but side stepping to send event to primary listeners");
    }
    Iterator<MapMouseListener> it=iterator();
    while (it.hasNext() && !consumed) {
      MapMouseListener target=it.next();
      consumed=target.mousePressed(evt) && consumeEvents;
      if (consumed) {
        priorityListener=target;
      }
    }
  }
  boolean ignoreConsumed=!consumed || (consumed && ((proxyDistributionMask & PROXY_ACK_CONSUMED_MOUSE_PRESSED) == 0));
  if (proxy != null && ignoreConsumed && !evt.isShiftDown()) {
    proxy.mousePressed(evt);
    consumed=true;
  }
 else {
    if (DEBUG && evt.isShiftDown()) {
      logger.fine("MMS.fireMapMousePressed(): side-stepped proxy");
    }
  }
  return consumed;
}

public boolean fireMapMousePressed ( MouseEvent evt ) { if ( DEBUG ) { logger . fine ( "MapMouseSupport.fireMapMousePressed()" ) ; } boolean consumed = false ; if ( DEBUG ) { logger . fine ( "  -- has proxy (" + ( proxy != null ) + ") -- shift used (" + evt . isShiftDown ( ) + ")" ) ; } if ( proxy == null || evt . isShiftDown ( ) || ( proxyDistributionMask & PROXY_DISTRIB_MOUSE_PRESSED ) > 0 ) { evt = new MapMouseEvent ( getParentMode ( ) , evt ) ; if ( DEBUG && proxy != null && evt . isShiftDown ( ) ) { logger . fine ( "MMS.fireMapMousePressed(): proxy enabled, but side stepping to send event to primary listeners" ) ; } Iterator < MapMouseListener > it = iterator ( ) ; while ( it . hasNext ( ) && ! consumed ) { MapMouseListener target = it . next ( ) ; consumed = target . mousePressed ( evt ) && consumeEvents ; if ( consumed ) { priorityListener = target ; } } } boolean ignoreConsumed = ! consumed || ( consumed && ( ( proxyDistributionMask & PROXY_ACK_CONSUMED_MOUSE_PRESSED ) == 0 ) ) ; if ( proxy != null && ignoreConsumed && ! evt . isShiftDown ( ) ) { proxy . mousePressed ( evt ) ; consumed = true ; } else { if ( DEBUG && evt . isShiftDown ( ) ) { logger . fine ( "MMS.fireMapMousePressed(): side-stepped proxy" ) ; } } return consumed ; }
handle a mousepressed mouselistener event .
