jfig.gui
Class KeyHandler

java.lang.Object
  extended byjfig.gui.KeyHandler

public class KeyHandler
extends java.lang.Object

handle key shortcuts for the jfig editor.

KeyHandler - concentrates all 'one letter' abbreviations for the jfig editor commands. 10.07.01: To support xfig-style META-key and CTRL-key combinations, we use an ugly hack


Field Summary
(package private) static int _ALT
           
(package private) static int _CTRL
           
(package private) static int _META
           
(package private)  int BreakCompoundChar
           
(package private)  int CopyObjectChar
           
(package private)  int CreateArcChar
           
(package private)  int CreateCircleChar
           
(package private)  int CreateClosedBezierChar
           
(package private)  int CreateClosedSplineChar
           
(package private)  int CreateCompoundChar
           
(package private)  int CreateEllipseChar
           
(package private)  int CreateImageChar
           
(package private)  int CreateOpenBezierChar
           
(package private)  int CreateOpenSplineChar
           
(package private)  int CreatePolygonChar
           
(package private)  int CreatePolylineChar
           
(package private)  int CreateRectangleChar
           
(package private)  int CreateTextChar
           
(package private)  int CutPointChar
           
(package private)  boolean debug
           
(package private)  int DeleteObjectChar
           
(package private)  int EditObjectChar
           
(package private)  FigBasicEditor editor
           
(package private)  int InsertPointChar
           
(package private)  int MirrorXChar
           
(package private)  int MirrorYChar
           
(package private)  int MoveObjectChar
           
(package private)  int MovePointChar
           
(package private)  int NextCachedAttributesChar
           
(package private)  int OpenCompoundChar
           
(package private)  int SaveAttributesToCacheChar
           
(package private)  int ScaleObjectChar
           
(package private)  int ToggleShowGridChar
           
(package private)  int ToggleShowTeXStringsChar
           
(package private)  int UpdateObjectChar
           
(package private) static java.lang.String versionString
           
(package private)  int ZoomFitChar
           
(package private)  int ZoomInChar
           
(package private)  int ZoomOutChar
           
 
Constructor Summary
KeyHandler(FigBasicEditor editor)
           
 
Method Summary
 void keyPressed(java.awt.event.KeyEvent evt)
           
 void message(java.lang.String msg)
           
 int setup(java.lang.String name, java.lang.String c)
           
 void setupShortcutKeys()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionString

static java.lang.String versionString

debug

boolean debug

_META

static final int _META
See Also:
Constant Field Values

_CTRL

static final int _CTRL
See Also:
Constant Field Values

_ALT

static final int _ALT
See Also:
Constant Field Values

editor

FigBasicEditor editor

CreateCompoundChar

int CreateCompoundChar

BreakCompoundChar

int BreakCompoundChar

ScaleObjectChar

int ScaleObjectChar

CreateArcChar

int CreateArcChar

CreateOpenBezierChar

int CreateOpenBezierChar

CreateClosedBezierChar

int CreateClosedBezierChar

CopyObjectChar

int CopyObjectChar

CreateCircleChar

int CreateCircleChar

DeleteObjectChar

int DeleteObjectChar

EditObjectChar

int EditObjectChar

CreateEllipseChar

int CreateEllipseChar

ZoomFitChar

int ZoomFitChar

ToggleShowGridChar

int ToggleShowGridChar

InsertPointChar

int InsertPointChar

CreateImageChar

int CreateImageChar

MoveObjectChar

int MoveObjectChar

NextCachedAttributesChar

int NextCachedAttributesChar

SaveAttributesToCacheChar

int SaveAttributesToCacheChar

OpenCompoundChar

int OpenCompoundChar

MovePointChar

int MovePointChar

CreatePolylineChar

int CreatePolylineChar

CreatePolygonChar

int CreatePolygonChar

CreateRectangleChar

int CreateRectangleChar

CreateOpenSplineChar

int CreateOpenSplineChar

CreateClosedSplineChar

int CreateClosedSplineChar

CreateTextChar

int CreateTextChar

UpdateObjectChar

int UpdateObjectChar

CutPointChar

int CutPointChar

MirrorXChar

int MirrorXChar

MirrorYChar

int MirrorYChar

ZoomOutChar

int ZoomOutChar

ZoomInChar

int ZoomInChar

ToggleShowTeXStringsChar

int ToggleShowTeXStringsChar
Constructor Detail

KeyHandler

public KeyHandler(FigBasicEditor editor)
Method Detail

setup

public int setup(java.lang.String name,
                 java.lang.String c)

setupShortcutKeys

public void setupShortcutKeys()

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)

message

public void message(java.lang.String msg)

toString

public java.lang.String toString()