org.eclipse.draw2d.TreeSearch Java Examples

The following examples show how to use org.eclipse.draw2d.TreeSearch. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DraggableElement.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @see org.eclipse.draw2d.IFigure#findFigureAt(int, int, org.eclipse.draw2d.TreeSearch)
 */
public IFigure findFigureAt(int x, int y, TreeSearch search) {
	// return the ConnectionHandle and not the children figures
	if (containsPoint(x, y)) {
		return this;
	}
	return super.findFigureAt(x, y, search);
}
 
Example #2
Source File: OverviewCursorLayer.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected IFigure findDescendantAtExcluding(int x, int y, TreeSearch search) {
	// do not dig deeper in the figure hierarchy
	return null;
}
 
Example #3
Source File: OverviewEventLayer.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected IFigure findDescendantAtExcluding(int x, int y, TreeSearch search) {
	// do not dig deeper in the figure hierarchy
	return null;
}
 
Example #4
Source File: EventFigure.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected IFigure findDescendantAtExcluding(int x, int y, TreeSearch search) {
	// do not dig deeper in the figure hierarchy
	return null;
}
 
Example #5
Source File: AbstractGuideHandle.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
public IFigure findFigureAt( int x, int y, TreeSearch search )
{
	return super.findFigureAt( x, y, search );
}
 
Example #6
Source File: SubprocessCollapseHandle.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
 * @see org.eclipse.draw2d.IFigure#findFigureAt(int, int, TreeSearch)
 */
public IFigure findFigureAt(int x, int y, TreeSearch search) {
	IFigure found = super.findFigureAt(x, y, search);
	return (minus.equals(found) || plus.equals(found)) ? this : found;
}