public NavMouseMode(boolean shouldConsumeEvents){
  super(modeID,shouldConsumeEvents);
  setModeCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
  rectAttributes.setLinePaint(Color.GRAY);
  rectAttributes.setMattingPaint(Color.LIGHT_GRAY);
  rectAttributes.setMatted(true);
}

public NavMouseMode ( boolean shouldConsumeEvents ) { super ( modeID , shouldConsumeEvents ) ; setModeCursor ( Cursor . getPredefinedCursor ( Cursor . CROSSHAIR_CURSOR ) ) ; rectAttributes . setLinePaint ( Color . GRAY ) ; rectAttributes . setMattingPaint ( Color . LIGHT_GRAY ) ; rectAttributes . setMatted ( true ) ; }
construct a navmousemode . lets you set the consume mode . if the events are consumed , then a mouseevent is sent only to the first mapmouselistener that successfully processes the event . if they are not consumed , then all of the listeners get a chance to act on the event .
