sk.uniba.euromath.editor.xmlEditor.viewers
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
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface 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()
           
 
Method Summary
 void addSelectionChangedListener(IDOMSelectionChangedListener listener)
          Adds a listener for selection changes in this selection provider.
 sk.uniba.euromath.document.interval.DOMIntervalSet getSelection()
          Returns copy of the current selection of provider.
 void removeSelectionChangedListener(IDOMSelectionChangedListener listener)
          Removes the given selection change listener from this selection provider.
 void selectionChanged(DOMSelectionChangedEvent event)
          Notifies that the selection has changed.
 void setSelection(sk.uniba.euromath.document.interval.DOMIntervalSet selection)
          Sets new selection for this selection provider.
 void showSelection(sk.uniba.euromath.document.interval.DOMIntervalSet selection)
          Shows selection, but actual selection doesn't changes.
 
Methods inherited from class org.eclipse.gef.ui.parts.ScrollingGraphicalViewer
createControl, getFigureCanvas, reveal, setRootFigure
 
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.GraphicalViewer
findHandleAt
 
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
 
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider
addSelectionChangedListener, removeSelectionChangedListener, setSelection
 

Constructor Detail

ScrollingGraphicalViewer

public ScrollingGraphicalViewer()
Method Detail

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.