question: public void paintLine ( Point2D pt1 , Point2D pt2 ) { if ( pt1 != null && pt2 != null ) { OMLine cLine = new OMLine ( pt1 . getY ( ) , pt1 . getX ( ) , pt2 . getY ( ) , pt2 . getX ( ) , OMGraphic . LINETYPE_GREATCIRCLE ) ; Projection proj = theMap . getProjection ( ) ; cLine . generate ( proj ) ; distanceList . add ( cLine ) ; } }
target:  Draw a rubberband line between two points