|
GEF v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.eclipse.gef.ui.parts.AbstractEditPartViewer
|
+--org.eclipse.gef.ui.parts.GraphicalViewerImpl
| Fields inherited from class org.eclipse.gef.ui.parts.AbstractEditPartViewer |
constantSelection, selection, selectionListeners |
| Constructor Summary | |
GraphicalViewerImpl()
|
|
| Method Summary | |
Control |
createControl(Composite composite)
if called, will create the default Control with the default style bits. |
protected void |
createDefaultRoot()
|
protected void |
expose(EditPart part)
|
Handle |
findHandleAt(Point p)
Finds the view handle at the point specified by x,y. |
EditPart |
findObjectAt(Point pt)
Returns null or the EditPart at the given mouse location. |
EditPart |
findObjectAtExcluding(Point pt,
Collection exclude)
Returns null or the EditPart at the given mouse location,
excluding all EditParts in the Collection
c. |
void |
flush()
|
protected DomainEventDispatcher |
getEventDispatcher()
Deprecated. |
protected Collection |
getInactiveLayers()
Deprecated. |
protected LayerManager |
getLayerManager()
|
protected LightweightSystem |
getLightweightSystem()
|
protected IFigure |
getRootFigure()
Deprecated. There is no reason to call this method |
protected void |
hookControl()
|
protected void |
hookDropTarget()
|
void |
menuAboutToShow(IMenuManager menu)
Called just before the context menu is shown. |
void |
registerAccessibleEditPart(AccessibleEditPart acc)
|
void |
setCursor(Cursor newCursor)
Sets the cursor for the viewer's control. |
void |
setEditDomain(EditDomain domain)
Sets the EditDomain for this viewer. |
void |
setRootEditPart(RootEditPart editpart)
Sets the root of this viewer. |
protected void |
setRootFigure(IFigure figure)
|
void |
setRouteEventsToEditor(boolean value)
Turns on/off the routing of events directly to the Editor. |
void |
unregisterAccessibleEditPart(AccessibleEditPart acc)
|
| 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, addDropTargetListener, appendSelection, deselect, deselectAll, dispose, getContents, getControl, getEditDomain, getEditPartFactory, getEditPartRegistry, getFocusEditPart, getKeyHandler, getRootEditPart, getSelectedEditParts, getVisualPartMap, select, setContents, setContents, setContextMenuProvider, setControl, setEditPartFactory, setFocus, setKeyHandler |
| Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider |
addSelectionChangedListener, getSelection, removeSelectionChangedListener, setSelection |
| Constructor Detail |
public GraphicalViewerImpl()
| Method Detail |
public Control createControl(Composite composite)
EditPartViewerControl with the default style bits. The control can also be
created externally and then set into the Viewer.createControl in interface EditPartViewercreateControl in class AbstractEditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.setControl(Control)protected void createDefaultRoot()
protected void expose(EditPart part)
expose in class AbstractEditPartViewerpublic Handle findHandleAt(Point p)
GraphicalViewerfindHandleAt in interface GraphicalViewerorg.eclipse.gef.GraphicalViewerp - Point the location on the Viewpublic EditPart findObjectAt(Point pt)
EditPartViewernull or the EditPart at the given mouse location.findObjectAt in interface EditPartViewerorg.eclipse.gef.EditPartViewerpoint - The mouse location
public EditPart findObjectAtExcluding(Point pt,
Collection exclude)
EditPartViewernull or the EditPart at the given mouse location,
excluding all EditParts in the Collection
c. If the editpart at the location is part of the exclusion set, the Viewer
should try to search through other EditParts in z-order that also occupy that point.findObjectAtExcluding in interface EditPartViewerorg.eclipse.gef.EditPartViewerpoint - The mouse locationc - The collection of editpart that should be excluded from the searchpublic void flush()
flush in interface EditPartViewerflush in class AbstractEditPartViewerprotected DomainEventDispatcher getEventDispatcher()
protected Collection getInactiveLayers()
protected LayerManager getLayerManager()
protected LightweightSystem getLightweightSystem()
protected IFigure getRootFigure()
protected void hookDropTarget()
hookDropTarget in class AbstractEditPartViewerpublic void menuAboutToShow(IMenuManager menu)
AbstractEditPartViewermenuAboutToShow in class AbstractEditPartViewerprotected void hookControl()
hookControl in class AbstractEditPartViewerpublic void registerAccessibleEditPart(AccessibleEditPart acc)
registerAccessibleEditPart in interface EditPartViewerregisterAccessibleEditPart in class AbstractEditPartViewerpublic void setCursor(Cursor newCursor)
EditPartViewersetCursor in interface EditPartViewersetCursor in class AbstractEditPartViewerorg.eclipse.gef.EditPartViewerEditPartViewer.getControl()public void setEditDomain(EditDomain domain)
EditPartViewersetEditDomain in interface EditPartViewersetEditDomain in class AbstractEditPartViewerorg.eclipse.gef.EditPartViewerdomain - The EditDomainpublic void setRootEditPart(RootEditPart editpart)
EditPartViewer
setContents(EditPart)setRootEditPart in interface EditPartViewersetRootEditPart in class AbstractEditPartViewerprotected void setRootFigure(IFigure figure)
public void setRouteEventsToEditor(boolean value)
EditPartViewersetRouteEventsToEditor in interface EditPartViewersetRouteEventsToEditor in class AbstractEditPartViewerpublic void unregisterAccessibleEditPart(AccessibleEditPart acc)
unregisterAccessibleEditPart in interface EditPartViewerunregisterAccessibleEditPart in class AbstractEditPartViewer
|
GEF v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||