|
Eclipse GEF 3.3 |
||||||||||
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
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 List |
getNavigationSiblings()
|
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, 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 List getNavigationSiblings()
EditParts
that can be traversed
to from the current focus part
public boolean keyPressed(KeyEvent event)
keyPressed
in class GraphicalViewerKeyHandler
org.eclipse.gef.KeyHandler#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)
|
Eclipse GEF 3.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |