Package org.eclipse.gef.ui.parts
Class PaletteViewerKeyHandler
java.lang.Object
org.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 SummaryConstructorsConstructorDescriptionPaletteViewerKeyHandler(PaletteViewer viewer) Constructs a key handler for the specified palette viewer.
- 
Method SummaryModifier and TypeMethodDescriptionprotected PointgetNavigationPoint(IFigure figure) Figures' navigation points are used to determine their direction compared to one another, and the distance between them.protected ListReturns the list of editparts which are conceptually at the same level of navigation as the currently focused editpart.booleankeyPressed(KeyEvent event) Extends keyPressed to look for palette navigation keys.protected voidnavigateTo(EditPart part, KeyEvent event) Navigates to the given EditPartMethods inherited from class org.eclipse.gef.ui.parts.GraphicalViewerKeyHandlergetFocusEditPart, getViewer, isViewerMirrored, processSelectMethods inherited from class org.eclipse.gef.KeyHandlerkeyReleased, put, remove, setParent
- 
Constructor Details- 
PaletteViewerKeyHandlerConstructs a key handler for the specified palette viewer.- Parameters:
- viewer- the palette viewer
 
 
- 
- 
Method Details
- 
keyPressedExtends keyPressed to look for palette navigation keys.- Overrides:
- keyPressedin class- GraphicalViewerKeyHandler
- Parameters:
- event- the KeyEvent
- Returns:
- trueif KeyEvent was handled in some way
- See Also: