Java Code Examples for org.eclipse.draw2d.FigureCanvas#scrollTo()
The following examples show how to use
org.eclipse.draw2d.FigureCanvas#scrollTo() .
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: ERDiagramEditor.java From ermasterr with Apache License 2.0 | 4 votes |
public void setLocation(final int x, final int y) { final FigureCanvas canvas = (FigureCanvas) getGraphicalViewer().getControl(); canvas.scrollTo(x, y); }
Example 2
Source File: MainDiagramEditor.java From erflute with Apache License 2.0 | 4 votes |
public void setLocation(int x, int y) { final FigureCanvas canvas = (FigureCanvas) getGraphicalViewer().getControl(); canvas.scrollTo(x, y); }
Example 3
Source File: ERDiagramEditor.java From ermaster-b with Apache License 2.0 | 4 votes |
public void setLocation(int x, int y) { FigureCanvas canvas = (FigureCanvas) this.getGraphicalViewer() .getControl(); canvas.scrollTo(x, y); }