question: protected void pickContainedVertices ( VisualizationViewer < V , E > vv , Point2D down , Point2D out , boolean clear ) { Layout < V , E > layout = vv . getGraphLayout ( ) ; PickedState < V > pickedVertexState = vv . getPickedVertexState ( ) ; Rectangle2D pickRectangle = new Rectangle2D . Double ( ) ; pickRectangle . setFrameFromDiagonal ( down , out ) ; if ( pickedVertexState != null ) { if ( clear ) { pickedVertexState . clear ( ) ; } GraphElementAccessor < V , E > pickSupport = vv . getPickSupport ( ) ; Collection < V > picked = pickSupport . getVertices ( layout , pickRectangle ) ; for ( V v : picked ) { pickedVertexState . pick ( v , true ) ; } } }
target:  pick the vertices inside the rectangle created from points 'down' and 'out' (two diagonally opposed corners of the rectangle)