|
GEF (MVC) 3.9.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.KeyHandler
org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
org.eclipse.gef.ui.parts.PaletteViewerKeyHandler
public class PaletteViewerKeyHandler
KeyHandler for the Palette
.
Handles selection traversal of Palette entries and collapse/expand of
categories.
Constructor Summary | |
---|---|
PaletteViewerKeyHandler(PaletteViewer viewer)
Constructs a key handler for the specified palette viewer. |
Method Summary | |
---|---|
protected Point |
getNavigationPoint(IFigure figure)
Figures' navigation points are used to determine their direction compared to one another, and the distance between them. |
protected java.util.List |
getNavigationSiblings()
Returns the list of editparts which are conceptually at the same level of navigation as the currently focused editpart. |
boolean |
keyPressed(KeyEvent event)
Extends keyPressed to look for palette navigation keys. |
protected void |
navigateTo(EditPart part,
KeyEvent event)
Navigates to the given EditPart |
Methods inherited from class org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler |
---|
getFocusEditPart, getViewer, isViewerMirrored, processSelect |
Methods inherited from class org.eclipse.gef.KeyHandler |
---|
keyReleased, put, remove, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaletteViewerKeyHandler(PaletteViewer viewer)
viewer
- the palette viewerMethod Detail |
---|
protected Point getNavigationPoint(IFigure figure)
figure
- the figure whose navigation point is to be returned
protected java.util.List getNavigationSiblings()
GraphicalViewerKeyHandler
This implementation returns a list that contains the EditPart that has focus.
getNavigationSiblings
in class GraphicalViewerKeyHandler
EditParts
that can be
traversed to from the current
focus part
public boolean keyPressed(KeyEvent event)
keyPressed
in class GraphicalViewerKeyHandler
event
- the KeyEvent
true
if KeyEvent was handled in some wayKeyHandler.keyPressed(org.eclipse.swt.events.KeyEvent)
protected void navigateTo(EditPart part, KeyEvent event)
GraphicalViewerKeyHandler
navigateTo
in class GraphicalViewerKeyHandler
part
- the EditPart to navigate toevent
- the KeyEvent that triggered this traversalGraphicalViewerKeyHandler.navigateTo(EditPart, KeyEvent)
|
GEF (MVC) 3.9.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |