Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.ui.parts
Class ScrollingGraphicalViewer

java.lang.Object
  extended by

org.eclipse.gef.ui.parts.AbstractEditPartViewer
      extended by

org.eclipse.gef.ui.parts.GraphicalViewerImpl
          extended by
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).


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 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
 
Methods inherited from interface org.eclipse.jface.viewers. ISelectionProvider
addSelectionChangedListener, removeSelectionChangedListener, setSelection
 

Constructor Detail

ScrollingGraphicalViewer

public ScrollingGraphicalViewer()
Constructs a ScrollingGraphicalViewer;

Method Detail

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)

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire