protected IFigure findDescendantAtExcluding(int x, int y, TreeSearch search) { PRIVATE_POINT.setLocation(x, y); translateFromParent(PRIVATE_POINT); if (!getFullArea().contains(PRIVATE_POINT)) return null; x = PRIVATE_POINT.x; y = PRIVATE_POINT.y; IFigure fig; for (int i = getChildren().size(); i > 0;) { i--; fig = (IFigure) getChildren().get(i); if (fig.isVisible()) { fig = fig.findFigureAt(x, y, search); if (fig != null) return fig; } } // No descendants were found return null; }
protected IFigure findDescendantAtExcluding( int x, int y, TreeSearch search ) { PRIVATE_POINT.setLocation( x, y ); translateFromParent( PRIVATE_POINT ); if ( !getBounds( ).contains( PRIVATE_POINT ) ) return null; IFigure fig; for ( int i = getChildren( ).size( ); i > 0; ) { i--; fig = (IFigure) getChildren( ).get( i ); if ( fig.isVisible( ) ) { fig = fig.findFigureAt( PRIVATE_POINT.x, PRIVATE_POINT.y, search ); if ( fig != null ) return fig; } } //No descendants were found return null; }
public IFigure findFigureAt(int x, int y, TreeSearch search) { IFigure result = super.findFigureAt(x, y, search); if (result != this) return result; return null; }
public IFigure findFigureAt( int x, int y, TreeSearch search ) { return super.findFigureAt( x, y, search ); }