Java 类org.eclipse.draw2d.TreeSearch 实例源码

项目:ForgedUI-Eclipse    文件:TableViewFigure.java   
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;
}
项目:birt    文件:ReportRootFigure.java   
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;
}
项目:gef-gwt    文件:PaletteScrollBar.java   
public IFigure findFigureAt(int x, int y, TreeSearch search) {
    IFigure result = super.findFigureAt(x, y, search);
    if (result != this)
        return result;
    return null;
}
项目:birt    文件:AbstractGuideHandle.java   
public IFigure findFigureAt( int x, int y, TreeSearch search )
{
    return super.findFigureAt( x, y, search );
}