question: public void drawingComplete ( OMGraphic omg , OMAction action ) { if ( timerButton . isSelected ( ) ) { timer . restart ( ) ; } if ( omg instanceof OMPoint ) { OMPoint p = ( OMPoint ) omg ; GLPoint mp = new GLPoint ( p . getLat ( ) , p . getLon ( ) , p . getRadius ( ) , true ) ; mp . setName ( "Added Node " + ( pointCount ++ ) ) ; mp . setStationary ( true ) ; mp . showPalette ( ) ; points . put ( mp . getName ( ) , mp ) ; manageGraphics ( ) ; } else if ( omg instanceof OMPoly ) { OMPoly poly = ( OMPoly ) omg ; PathGLPoint pmp = new PathGLPoint ( poly , 5 , true ) ; pmp . setName ( "Added Node " + ( pointCount ++ ) ) ; pmp . showPalette ( ) ; points . put ( pmp . getName ( ) , pmp ) ; manageGraphics ( ) ; } addNodeButton . setEnabled ( true ) ; addPathButton . setEnabled ( true ) ; }
target:  The method where a graphic, and an action to take on the graphic, arrives.