question: private void addSelectionToPlotList ( ) { if ( selectedGraphic != null ) { selectedGraphic . setLinePaint ( Color . blue ) ; if ( selectedGraphics == null ) { selectedGraphics = new Vector < GLOBESite > ( ) ; } Object app_obj = selectedGraphic . getAttribute ( OMGraphic . APP_OBJECT ) ; if ( app_obj instanceof GLOBESite ) { GLOBESite site = ( GLOBESite ) app_obj ; if ( ! selectedGraphics . contains ( app_obj ) ) { Debug . message ( "basic" , "Adding to plot list..." ) ; selectedGraphics . addElement ( site ) ; selectedGraphic . setFillPaint ( Color . yellow ) ; } else { Debug . message ( "basic" , "Removing from plot list..." ) ; selectedGraphics . removeElement ( site ) ; selectedGraphic . setFillPaint ( Color . red ) ; selectedGraphic . setLinePaint ( Color . red ) ; } } } else { Debug . message ( "basic" , "Nothing to add to plot list!" ) ; } }
target:  Add the data from the clicked site to the list of things we are drawing.