Package jltk.testing
Class AppTester
- java.lang.Object
- 
- jltk.App
- 
- jltk.testing.AppTester
 
 
- 
 public class AppTester extends App Beschreiben Sie hier die Klasse AppTester.- Version:
- (eine Versionsnummer oder ein Datum)
- Author:
- (Ihr Name)
 
- 
- 
Constructor SummaryConstructors Constructor Description AppTester()Konstruktor für Objekte der Klasse AppTester
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidact()This method is called, every time no other eventhandler is called (on idle).voidonFocusGained()This method is called if the window of this app get the focus.voidonFocusLost()This method is called if the window of this app lost the focus.voidonKeyPressed(String pKey)Will be called, if a key on the keyboard was pressed.voidonKeyReleased(String pKey)Will be called, if a key on the keyboard was released.voidonMouseClicked(int pX, int pY)Will be called, if the mouse was clicked.voidonMouseDoubleClicked(int pX, int pY)Will be called, if the mouse was double clicked.voidonMouseMoved(int pX, int pY)Will be called, if the mouse was moved.- 
Methods inherited from class jltk.Appdelay, getWindow, onMouseDragged, onMousePressed, onMouseReleased
 
- 
 
- 
- 
- 
Field Detail- 
penPen pen 
 
- 
 - 
Method Detail- 
onMouseMovedpublic void onMouseMoved(int pX, int pY)Description copied from class:AppWill be called, if the mouse was moved. You have to overwrite this method in your subclass- Overrides:
- onMouseMovedin class- App
- Parameters:
- pX- The x-coordinate of the mouse position
- pY- The y-coordinate of the mouse position
 
 - 
onMouseDoubleClickedpublic void onMouseDoubleClicked(int pX, int pY)Description copied from class:AppWill be called, if the mouse was double clicked. You have to overwrite this method in your subclass- Overrides:
- onMouseDoubleClickedin class- App
- Parameters:
- pX- The x-coordinate of the mouse position
- pY- The y-coordinate of the mouse position
 
 - 
onMouseClickedpublic void onMouseClicked(int pX, int pY)Description copied from class:AppWill be called, if the mouse was clicked. You have to overwrite this method in your subclass- Overrides:
- onMouseClickedin class- App
- Parameters:
- pX- The x-coordinate of the mouse position
- pY- The y-coordinate of the mouse position
 
 - 
onKeyPressedpublic void onKeyPressed(String pKey) Description copied from class:AppWill be called, if a key on the keyboard was pressed. The parameter pKey is the corresponding key name.The following key names are recognized: - a-z
- 0-1
- up, down, left, right (cursor keys)
- enter, space, tab, escape, backspace
- F1-F12 (function keys)
 You have to overwrite this method in your subclass. - Overrides:
- onKeyPressedin class- App
- Parameters:
- pKey- The name of the pressed key
 
 - 
onKeyReleasedpublic void onKeyReleased(String pKey) Description copied from class:AppWill be called, if a key on the keyboard was released. The parameter pKey is the corresponding key nameThe following key names are recognized: - a-z
- 0-1
- up, down, left, right (cursor keys)
- enter, space, tab, escape, backspace
- F1-F12 (function keys)
 You have to overwrite this method in your subclass. - Overrides:
- onKeyReleasedin class- App
- Parameters:
- pKey- The name of the pressed key
 
 - 
actpublic void act() Description copied from class:AppThis method is called, every time no other eventhandler is called (on idle). You have to overwrite this method in your subclass.
 - 
onFocusGainedpublic void onFocusGained() Description copied from class:AppThis method is called if the window of this app get the focus. You have to overwrite this method in your subclass.- Overrides:
- onFocusGainedin class- App
 
 - 
onFocusLostpublic void onFocusLost() Description copied from class:AppThis method is called if the window of this app lost the focus. You have to overwrite this method in your subclass.- Overrides:
- onFocusLostin class- App
 
 
- 
 
-