public void listenerPaint(Object source,java.awt.Graphics g){
  if (drawDistanceObjects) {
    for (int i=0; i < segments.size() - 1; i++) {
      paintLine((LatLonPoint)(segments.elementAt(i)),(LatLonPoint)(segments.elementAt(i + 1)),g);
    }
    if (rPoint1 != null && rPoint2 != null) {
      paintRubberband(rPoint1,rPoint2,g);
    }
  }
}

public void listenerPaint ( Object source , java . awt . Graphics g ) { if ( drawDistanceObjects ) { for ( int i = 0 ; i < segments . size ( ) - 1 ; i ++ ) { paintLine ( ( LatLonPoint ) ( segments . elementAt ( i ) ) , ( LatLonPoint ) ( segments . elementAt ( i + 1 ) ) , g ) ; } if ( rPoint1 != null && rPoint2 != null ) { paintRubberband ( rPoint1 , rPoint2 , g ) ; } } }
called by the mapbean when it repaints , to let the mousemode know when to update itself on the map . paintlistener interface .
