|
org.eclipse.gef.ui.parts
Class ScrollingGraphicalViewer
java.lang.Object
org.eclipse.gef.ui.parts.AbstractEditPartViewer
org.eclipse.gef.ui.parts.GraphicalViewerImpl
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer
-
All Implemented Interfaces:
-
EditPartViewer,
GraphicalViewer,
ISelectionProvider
-
Direct Known Subclasses:
-
PaletteViewer
- public class ScrollingGraphicalViewer
- extends
GraphicalViewerImpl
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) .
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 org.eclipse.gef.ui.parts.
AbstractEditPartViewer
|
addDragSourceListener,
addDragSourceListener,
addDropTargetListener,
addDropTargetListener,
addPropertyChangeListener,
addSelectionChangedListener,
appendSelection,
deselect,
deselectAll,
findObjectAt,
findObjectAtExcluding,
fireSelectionChanged,
getContents,
getContextMenu,
getControl,
getDelegatingDragAdapter,
getDelegatingDropAdapter,
getDragSource,
getDropTarget,
getEditDomain,
getEditPartFactory,
getEditPartRegistry,
getFocusEditPart,
getKeyHandler,
getProperty,
getResourceManager,
getRootEditPart,
getSelectedEditParts,
getSelection,
getSelectionManager,
getVisualPartMap,
hookDragSource,
init,
primGetSelectedEditParts,
refreshDragSourceAdapter,
refreshDropTargetAdapter,
removeDragSourceListener,
removeDragSourceListener,
removeDropTargetListener,
removeDropTargetListener,
removePropertyChangeListener,
removeSelectionChangedListener,
select,
setContents,
setContents,
setControl,
setDropTarget,
setEditPartFactory,
setFocus,
setKeyHandler,
setProperty,
setSelection,
setSelectionManager
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
Methods inherited from interface org.eclipse.gef.
EditPartViewer
|
addDragSourceListener,
addDragSourceListener,
addDropTargetListener,
addDropTargetListener,
addPropertyChangeListener,
appendSelection,
deselect,
deselectAll,
findObjectAt,
findObjectAtExcluding,
getContents,
getContextMenu,
getControl,
getEditDomain,
getEditPartFactory,
getEditPartRegistry,
getFocusEditPart,
getKeyHandler,
getProperty,
getResourceManager,
getRootEditPart,
getSelectedEditParts,
getSelection,
getSelectionManager,
getVisualPartMap,
removeDragSourceListener,
removeDragSourceListener,
removeDropTargetListener,
removeDropTargetListener,
removePropertyChangeListener,
select,
setContents,
setContents,
setControl,
setEditPartFactory,
setFocus,
setKeyHandler,
setProperty,
setSelectionManager
|
ScrollingGraphicalViewer
public ScrollingGraphicalViewer()
- Constructs a ScrollingGraphicalViewer;
createControl
public final Control createControl(Composite parent)
-
Description copied from interface:
EditPartViewer
- Optionally creates the default
Control using
the default style. The Control can also be created externally and then set into the
Viewer.
-
-
Specified by:
-
createControl
in interface
EditPartViewer
-
Overrides:
-
createControl
in class
GraphicalViewerImpl
-
-
See Also:
-
org.eclipse.gef.EditPartViewer#createControl(org.eclipse.swt.widgets.Composite)
getFigureCanvas
protected
FigureCanvas getFigureCanvas()
- Convenience method which types the control as a
FigureCanvas . This method
returns null whenever the control is null.
-
-
Returns:
-
null or the Control as a FigureCanvas
reveal
public void reveal(
EditPart part)
- Extends the superclass implementation to scroll the native Canvas control after the
super's implementation has completed.
-
-
Specified by:
-
reveal
in interface
EditPartViewer
-
Overrides:
-
reveal
in class
GraphicalViewerImpl
-
-
See Also:
-
EditPartViewer.reveal(org.eclipse.gef.EditPart)
setRootFigure
protected void setRootFigure(
IFigure figure)
-
Description copied from class:
GraphicalViewerImpl
- Sets the lightweight system's root figure.
-
-
Overrides:
-
setRootFigure
in class
GraphicalViewerImpl
-
-
Parameters:
-
figure - the root figure -
See Also:
-
GraphicalViewerImpl.setRootFigure(IFigure)
Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.
|
|