|
Eclipse GEF 3.8.0.201206112118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.ui.parts.AbstractEditPartViewer
org.eclipse.gef.ui.parts.GraphicalViewerImpl
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer
public class ScrollingGraphicalViewer
A Graphical Viewer implementation which uses a
FigureCanvas for native scrolling. Because the
scrolling is handled natively, the root editpart should not contain a
ScrollPane figure. Do not use root editparts which
provide scrollpane figures, such as GraphicalRootEditPart.
The RootEditPart for a ScrollingGraphicalViewer may contain a Viewport. If it
does, that viewport will be set as the FigureCanvas' viewport. FigureCanvas
has certain requirements on the viewport figure, see
FigureCanvas.setViewport(Viewport).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.gef.EditPartViewer |
|---|
EditPartViewer.Conditional |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.gef.ui.parts.AbstractEditPartViewer |
|---|
constantSelection, focusPart, selection, selectionListeners |
| Constructor Summary | |
|---|---|
ScrollingGraphicalViewer()
Constructs a ScrollingGraphicalViewer; |
|
| Method Summary | |
|---|---|
Control |
createControl(Composite parent)
Optionally creates the default Control using the default style. |
protected FigureCanvas |
getFigureCanvas()
Convenience method which types the control as a FigureCanvas
. |
protected void |
hookRootFigure()
If the figure is a viewport, set the canvas' viewport, otherwise, set its contents. |
void |
reveal(EditPart part)
Extends the superclass implementation to scroll the native Canvas control after the super's implementation has completed. |
| Methods inherited from class org.eclipse.gef.ui.parts.GraphicalViewerImpl |
|---|
createDefaultRoot, createLightweightSystem, findHandleAt, findObjectAtExcluding, flush, getEventDispatcher, getLayerManager, getLightweightSystem, getRootFigure, handleDispose, handleFocusGained, handleFocusLost, hookControl, hookDropTarget, registerAccessibleEditPart, setContextMenu, setCursor, setDragSource, setEditDomain, setRootEditPart, setRootFigure, setRouteEventsToEditDomain, unhookControl, unregisterAccessibleEditPart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider |
|---|
addSelectionChangedListener, removeSelectionChangedListener, setSelection |
| Constructor Detail |
|---|
public ScrollingGraphicalViewer()
| Method Detail |
|---|
public final Control createControl(Composite parent)
EditPartViewerControl using the default style. The Control can also be created
externally and then set into the Viewer.
createControl in interface EditPartViewercreateControl in class GraphicalViewerImplparent - the parent in which create the SWT Control
EditPartViewer.createControl(org.eclipse.swt.widgets.Composite)protected FigureCanvas getFigureCanvas()
FigureCanvas
. This method returns null whenever the control is null.
null or the Control as a FigureCanvaspublic void reveal(EditPart part)
reveal in interface EditPartViewerreveal in class GraphicalViewerImplpart - the EditPart to revealEditPartViewer.reveal(org.eclipse.gef.EditPart)protected void hookRootFigure()
hookRootFigure in class GraphicalViewerImpl
|
Eclipse GEF 3.8.0.201206112118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||