org.jgraph.plaf.basic

Class BasicGraphUI.KeyHandler

public class BasicGraphUI.KeyHandler extends KeyAdapter implements Serializable

This is used to get mutliple key down events to appropriately generate events.
Field Summary
protected booleanisKeyDown
Set to true while keyPressed is active.
protected ActionrepeatKeyAction
Key code that is being generated for.
Method Summary
voidkeyPressed(KeyEvent e)
voidkeyReleased(KeyEvent e)

Field Detail

isKeyDown

protected boolean isKeyDown
Set to true while keyPressed is active.

repeatKeyAction

protected Action repeatKeyAction
Key code that is being generated for.

Method Detail

keyPressed

public void keyPressed(KeyEvent e)

keyReleased

public void keyReleased(KeyEvent e)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.