|
Eclipse GEF 3.0.1 |
||||||||||
| 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
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 inherited from class 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. |
void |
reveal(EditPart part)
Extends the superclass implementation to scroll the native Canvas control after the super's implementation has completed. |
protected void |
setRootFigure(IFigure figure)
Sets the lightweight system's root figure. |
| 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, 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 GraphicalViewerImplEditPartViewer.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 GraphicalViewerImplEditPartViewer.reveal(org.eclipse.gef.EditPart)protected void setRootFigure(IFigure figure)
GraphicalViewerImpl
setRootFigure in class GraphicalViewerImplfigure - the root figureGraphicalViewerImpl.setRootFigure(IFigure)
|
Eclipse GEF 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||