java.lang.Object
com.xerox.VTM.engine.AppEventHandler
- Direct Known Subclasses:
- AppletEventHandler
- public abstract class AppEventHandler
- extends java.lang.Object
Abstract class that every VTM-based application should subclass - deals with events like mouse clicks, keyboard events, and entering/leaving a glyph - for every method, mod tells if a modifier key is pressed at the time of the event 0 = no key, 1 = shift, 2 = ctrl, 3 = ctrl+shift
|
Method Summary |
void |
click1(ViewPanel v,
int mod,
int jpx,
int jpy,
int clickNumber)
|
void |
click2(ViewPanel v,
int mod,
int jpx,
int jpy,
int clickNumber)
|
void |
click3(ViewPanel v,
int mod,
int jpx,
int jpy,
int clickNumber)
|
void |
enterGlyph(com.xerox.VTM.glyphs.Glyph g)
subclassing methods should call super() |
void |
exitGlyph(com.xerox.VTM.glyphs.Glyph g)
subclassing methods should call super() |
void |
Kpress(ViewPanel v,
char c,
int code,
int mod)
|
void |
Krelease(ViewPanel v,
char c,
int code,
int mod)
|
void |
Ktype(ViewPanel v,
char c,
int code,
int mod)
beware: code is always 0 in Ktype (it is the value of KeyEvent.getKeyCode() which is always equal to VK_UNDEFINED according to Sun). |
void |
mouseDragged(ViewPanel v,
int mod,
int buttonNumber,
int jpx,
int jpy)
|
void |
mouseMoved(ViewPanel v,
int jpx,
int jpy)
|
void |
press1(ViewPanel v,
int mod,
int jpx,
int jpy)
|
void |
press2(ViewPanel v,
int mod,
int jpx,
int jpy)
|
void |
press3(ViewPanel v,
int mod,
int jpx,
int jpy)
|
void |
release1(ViewPanel v,
int mod,
int jpx,
int jpy)
|
void |
release2(ViewPanel v,
int mod,
int jpx,
int jpy)
|
void |
release3(ViewPanel v,
int mod,
int jpx,
int jpy)
|
void |
viewActivated(View v)
|
void |
viewClosing(View v)
|
void |
viewDeactivated(View v)
|
void |
viewDeiconified(View v)
|
void |
viewIconified(View v)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CTRL_MOD
public static int CTRL_MOD
CTRL_SHIFT_MOD
public static int CTRL_SHIFT_MOD
SHIFT_MOD
public static int SHIFT_MOD
NO_MODIFIER
public static int NO_MODIFIER
AppEventHandler
public AppEventHandler()
press1
public void press1(ViewPanel v,
int mod,
int jpx,
int jpy)
release1
public void release1(ViewPanel v,
int mod,
int jpx,
int jpy)
click1
public void click1(ViewPanel v,
int mod,
int jpx,
int jpy,
int clickNumber)
press2
public void press2(ViewPanel v,
int mod,
int jpx,
int jpy)
release2
public void release2(ViewPanel v,
int mod,
int jpx,
int jpy)
click2
public void click2(ViewPanel v,
int mod,
int jpx,
int jpy,
int clickNumber)
press3
public void press3(ViewPanel v,
int mod,
int jpx,
int jpy)
release3
public void release3(ViewPanel v,
int mod,
int jpx,
int jpy)
click3
public void click3(ViewPanel v,
int mod,
int jpx,
int jpy,
int clickNumber)
mouseMoved
public void mouseMoved(ViewPanel v,
int jpx,
int jpy)
mouseDragged
public void mouseDragged(ViewPanel v,
int mod,
int buttonNumber,
int jpx,
int jpy)
enterGlyph
public void enterGlyph(com.xerox.VTM.glyphs.Glyph g)
- subclassing methods should call super()
exitGlyph
public void exitGlyph(com.xerox.VTM.glyphs.Glyph g)
- subclassing methods should call super()
Ktype
public void Ktype(ViewPanel v,
char c,
int code,
int mod)
- beware: code is always 0 in Ktype (it is the value of KeyEvent.getKeyCode() which is always equal to VK_UNDEFINED according to Sun). If you need to access code, use Kpress or Krelease.
Kpress
public void Kpress(ViewPanel v,
char c,
int code,
int mod)
Krelease
public void Krelease(ViewPanel v,
char c,
int code,
int mod)
viewActivated
public void viewActivated(View v)
viewDeactivated
public void viewDeactivated(View v)
viewIconified
public void viewIconified(View v)
viewDeiconified
public void viewDeiconified(View v)
viewClosing
public void viewClosing(View v)