double brX = Math.max(initialSelectPoint.getX(),
double brX = Math.max(selectionAnchorPoint.getX(),
        public void respondEndDrag(PInputEvent e)        {            Point2D endSelectPoint = e.getPosition();            double tlX = Math.min(initialSelectPoint.getX(),                                  endSelectPoint.getX());            double tlY = Math.min(initialSelectPoint.getY(),                                  endSelectPoint.getY());            double brX = Math.max(initialSelectPoint.getX(),                                  endSelectPoint.getX());            double brY = Math.max(initialSelectPoint.getY(),                                  endSelectPoint.getY());                        Rectangle2D region = new Rectangle2D.Double(tlX,tlY,brX-tlX,                                                        brY-tlY);                                                                    List thumbnailList = browserModel.getThumbnails();            for(Iterator iter = thumbnailList.iterator(); iter.hasNext();)            {                Thumbnail t = (Thumbnail)iter.next();                Rectangle2D tBounds =                    new Rectangle2D.Double(t.getOffset().getX(),                                           t.getOffset().getY(),                                           t.getBounds().getWidth(),                                           t.getBounds().getHeight());                if(tBounds.intersects(region))                {                    browserModel.selectThumbnail(t);                }            }                        if(browserModel.getSelectedImages().size() > 0)            {                browserModel.setCurrentMode(BrowserModel.SELECT_MODE_NAME,                                            BrowserMode.SELECTED_MODE);            }            else            {                browserModel.setCurrentMode(BrowserModel.SELECT_MODE_NAME,                                            BrowserMode.UNSELECTED_MODE);            }        }