|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.ui.parts.AbstractEditPartViewer | +--org.eclipse.gef.ui.parts.GraphicalViewerImpl
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, selection, selectionListeners |
Constructor Summary | |
GraphicalViewerImpl()
|
Method Summary | |
Control |
createControl(Composite composite)
Optionally creates the default Control using
the default style. |
protected void |
createDefaultRoot()
|
protected org.eclipse.draw2d.LightweightSystem |
createLightweightSystem()
|
Handle |
findHandleAt(org.eclipse.draw2d.geometry.Point p)
Returns the Handle at the specified Point. |
EditPart |
findObjectAtExcluding(org.eclipse.draw2d.geometry.Point pt,
Collection exclude,
EditPartViewer.Conditional condition)
Returns null or the EditPart at the specified location,
using the given exclusion set and conditional. |
void |
flush()
Flushes all pending updates to the Viewer. |
protected DomainEventDispatcher |
getEventDispatcher()
Deprecated. |
protected LayerManager |
getLayerManager()
|
protected org.eclipse.draw2d.LightweightSystem |
getLightweightSystem()
|
protected org.eclipse.draw2d.IFigure |
getRootFigure()
Deprecated. There is no reason to call this method |
protected void |
handleDispose(DisposeEvent e)
Called if and when the Control is disposed. |
protected void |
hookControl()
|
protected void |
hookDropTarget()
|
void |
registerAccessibleEditPart(AccessibleEditPart acc)
Used for accessibility purposes. |
void |
reveal(EditPart part)
Shows the given EditPart if it is not visible. |
void |
setContextMenu(MenuManager contextMenu)
Extended implementation to flush asynchronous paints in draw2d. |
void |
setCursor(Cursor newCursor)
Sets the cursor for the viewer's Control . |
protected void |
setDragSource(DragSource source)
|
void |
setEditDomain(EditDomain domain)
Sets the EditDomain for this viewer. |
void |
setRootEditPart(RootEditPart editpart)
Sets the root of this viewer. |
protected void |
setRootFigure(org.eclipse.draw2d.IFigure figure)
|
void |
setRouteEventsToEditDomain(boolean value)
Turns on/off the routing of events directly to the Editor. |
void |
unregisterAccessibleEditPart(AccessibleEditPart acc)
Used for accessibility purposes |
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, findObjectAt, findObjectAtExcluding, getContents, getContextMenu, getControl, getEditDomain, getEditPartFactory, getEditPartRegistry, getFocusEditPart, getKeyHandler, getRootEditPart, getSelectedEditParts, getVisualPartMap, select, setContents, setContents, 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)
EditPartViewer
Control
using
the default style. The Control can also be created externally and then set into the
Viewer.
createControl
in interface EditPartViewer
createControl
in class AbstractEditPartViewer
composite
- the parent in which create the SWT Control
EditPartViewer.setControl(Control)
protected void createDefaultRoot()
protected org.eclipse.draw2d.LightweightSystem createLightweightSystem()
protected void handleDispose(DisposeEvent e)
AbstractEditPartViewer
Control
is disposed. Subclasses may extend this
method to perform additional cleanup.
handleDispose
in class AbstractEditPartViewer
e
- the disposeeventpublic Handle findHandleAt(org.eclipse.draw2d.geometry.Point p)
GraphicalViewer
Handle
at the specified Point. Returns null
if no
handle exists at the given Point. The specified point should be relative to the
client area
for this
Viewer's Control
.
findHandleAt
in interface GraphicalViewer
p
- the location relative to the Control's client area
null
or a Handlepublic EditPart findObjectAtExcluding(org.eclipse.draw2d.geometry.Point pt, Collection exclude, EditPartViewer.Conditional condition)
EditPartViewer
null
or the EditPart
at the specified location,
using the given exclusion set and conditional. This method behaves similarly to EditPartViewer.findObjectAt(Point)
.
findObjectAtExcluding
in interface EditPartViewer
pt
- The mouse locationexclude
- The set of EditParts to be excludedcondition
- the Conditional used to evaluate a potential hit
null
or an EditPartpublic void flush()
EditPartViewer
flush
in interface EditPartViewer
flush
in class AbstractEditPartViewer
EditPartViewer.flush()
protected DomainEventDispatcher getEventDispatcher()
protected LayerManager getLayerManager()
protected org.eclipse.draw2d.LightweightSystem getLightweightSystem()
protected org.eclipse.draw2d.IFigure getRootFigure()
protected void hookDropTarget()
hookDropTarget
in class AbstractEditPartViewer
protected void hookControl()
hookControl
in class AbstractEditPartViewer
public void registerAccessibleEditPart(AccessibleEditPart acc)
EditPartViewer
registerAccessibleEditPart
in interface EditPartViewer
registerAccessibleEditPart
in class AbstractEditPartViewer
acc
- the AccessibleEditPartpublic void reveal(EditPart part)
EditPartViewer
reveal
in interface EditPartViewer
reveal
in class AbstractEditPartViewer
part
- the EditPart to revealEditPartViewer.reveal(EditPart)
public void setContextMenu(MenuManager contextMenu)
setContextMenu
in interface EditPartViewer
setContextMenu
in class AbstractEditPartViewer
contextMenu
- the ContextMenuProvider
EditPartViewer.setContextMenu(org.eclipse.jface.action.MenuManager)
public void setCursor(Cursor newCursor)
EditPartViewer
Control
. This method should only be
called by Tools
. null
can be used to indicate that the
default cursor should be restored.
setCursor
in interface EditPartViewer
setCursor
in class AbstractEditPartViewer
newCursor
- null
or a CursorEditPartViewer.getControl()
protected void setDragSource(DragSource source)
setDragSource
in class AbstractEditPartViewer
public void setEditDomain(EditDomain domain)
EditPartViewer
EditDomain
for this viewer. The Viewer will route all mouse and
keyboard events to the EditDomain.
setEditDomain
in interface EditPartViewer
setEditDomain
in class AbstractEditPartViewer
domain
- The EditDomainpublic void setRootEditPart(RootEditPart editpart)
EditPartViewer
setRootEditPart
in interface EditPartViewer
setRootEditPart
in class AbstractEditPartViewer
editpart
- the RootEditPartEditPartViewer.getRootEditPart()
,
EditPartViewer.getContents()
protected void setRootFigure(org.eclipse.draw2d.IFigure figure)
public void setRouteEventsToEditDomain(boolean value)
EditPartViewer
EditDomain
rather than
handled in the default way.
setRouteEventsToEditDomain
in interface EditPartViewer
setRouteEventsToEditDomain
in class AbstractEditPartViewer
value
- true if the viewer should route events to the EditDomainpublic void unregisterAccessibleEditPart(AccessibleEditPart acc)
EditPartViewer
unregisterAccessibleEditPart
in interface EditPartViewer
unregisterAccessibleEditPart
in class AbstractEditPartViewer
acc
- the accessible part
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |