sk.uniba.euromath.editor.xmlEditor.viewers
Class ScrollingGraphicalViewer
java.lang.Object
org.eclipse.gef.ui.parts.AbstractEditPartViewer
org.eclipse.gef.ui.parts.GraphicalViewerImpl
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer
sk.uniba.euromath.editor.xmlEditor.viewers.ScrollingGraphicalViewer
- All Implemented Interfaces:
- EditPartViewer, GraphicalViewer, ISelectionProvider, IDOMSelectionChangedListener, IDOMSelectionProvider, IXMLGraphicalViewer
public class ScrollingGraphicalViewer
- extends ScrollingGraphicalViewer
- implements IXMLGraphicalViewer
- Author:
- kollar
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, getRootEditPart, getSelectedEditParts, 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, createControl, deselect, deselectAll, findObjectAt, findObjectAtExcluding, findObjectAtExcluding, flush, getContents, getContextMenu, getControl, getEditDomain, getEditPartFactory, getEditPartRegistry, getFocusEditPart, getKeyHandler, getProperty, getRootEditPart, getSelectedEditParts, getSelectionManager, getVisualPartMap, registerAccessibleEditPart, removeDragSourceListener, removeDragSourceListener, removeDropTargetListener, removeDropTargetListener, removePropertyChangeListener, reveal, select, setContents, setContents, setContextMenu, setControl, setCursor, setEditDomain, setEditPartFactory, setFocus, setKeyHandler, setProperty, setRootEditPart, setRouteEventsToEditDomain, setSelectionManager, unregisterAccessibleEditPart |
ScrollingGraphicalViewer
public ScrollingGraphicalViewer()
getSelection
public sk.uniba.euromath.document.interval.DOMIntervalSet getSelection()
- Description copied from interface:
IDOMSelectionProvider
- Returns copy of the current selection of provider.
- Specified by:
getSelection
in interface EditPartViewer
- Specified by:
getSelection
in interface ISelectionProvider
- Specified by:
getSelection
in interface IDOMSelectionProvider
- Overrides:
getSelection
in class AbstractEditPartViewer
- Returns:
- the current selection
addSelectionChangedListener
public void addSelectionChangedListener(IDOMSelectionChangedListener listener)
- Description copied from interface:
IDOMSelectionProvider
- Adds a listener for selection changes in this selection provider. Has no
effect if an identical listener is already registered.
- Specified by:
addSelectionChangedListener
in interface IDOMSelectionProvider
- Parameters:
listener
- a DOM selection changed listener
removeSelectionChangedListener
public void removeSelectionChangedListener(IDOMSelectionChangedListener listener)
- Description copied from interface:
IDOMSelectionProvider
- Removes the given selection change listener from this selection provider.
Has no affect if an identical listener is not registered.
- Specified by:
removeSelectionChangedListener
in interface IDOMSelectionProvider
- Parameters:
listener
- a DOM selection changed listener
setSelection
public void setSelection(sk.uniba.euromath.document.interval.DOMIntervalSet selection)
- Description copied from interface:
IDOMSelectionProvider
- Sets new selection for this selection provider.
- Specified by:
setSelection
in interface IDOMSelectionProvider
- Parameters:
selection
- the new XML selection
selectionChanged
public void selectionChanged(DOMSelectionChangedEvent event)
- Description copied from interface:
IDOMSelectionChangedListener
- Notifies that the selection has changed.
- Specified by:
selectionChanged
in interface IDOMSelectionChangedListener
- Parameters:
event
- event object describing the change
showSelection
public void showSelection(sk.uniba.euromath.document.interval.DOMIntervalSet selection)
- Description copied from interface:
IXMLGraphicalViewer
- Shows selection, but actual selection doesn't changes.
- Specified by:
showSelection
in interface IXMLGraphicalViewer
- Parameters:
selection
- the selection to show
Copyright 2003-2003-2006 null. All Rights Reserved.