Java Code Examples for org.eclipse.draw2d.Figure#addMouseListener()
The following examples show how to use
org.eclipse.draw2d.Figure#addMouseListener() .
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: RailroadView.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void createPartControl(Composite parent) { canvas = new FigureCanvas(parent, SWT.V_SCROLL | SWT.H_SCROLL); rootFigure = new Figure(); rootFigure.addMouseListener(selectionProvider); rootFigure.setLayoutManager(new StackLayout()); rootFigure.setVisible(true); canvas.setContents(rootFigure); getSite().setSelectionProvider(selectionProvider); createActions(); }
Example 2
Source File: DetailAreaListener.java From nebula with Eclipse Public License 2.0 | 4 votes |
public DetailAreaListener(Figure figure) { fFigure = figure; figure.addMouseListener(this); figure.addMouseMotionListener(this); }
Example 3
Source File: OverviewSelectionMover.java From nebula with Eclipse Public License 2.0 | 4 votes |
public OverviewSelectionMover(Figure figure) { fFigure = figure; figure.addMouseListener(this); }
Example 4
Source File: OverviewSelector.java From nebula with Eclipse Public License 2.0 | 4 votes |
public OverviewSelector(Figure figure) { fFigure = figure; figure.addMouseListener(this); }