yakkey
Class Yakkey
java.lang.Object
|
+--yakkey.Yakkey
- All Implemented Interfaces:
- java.awt.event.ActionListener, DisplayInterface, java.util.EventListener, java.awt.event.MouseListener
- public class Yakkey
- extends java.lang.Object
- implements java.awt.event.ActionListener, java.awt.event.MouseListener, DisplayInterface
User interface frontend to the YakScript interpreter
Field Summary |
static boolean |
LINUX
|
static boolean |
SOUND
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent ae)
|
void |
blank(boolean state,
java.lang.String msg)
YakScript callback routine invoked to (un)blank display when
lengthy processing starts/ends |
void |
init(java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
|
void |
mouseClicked(java.awt.event.MouseEvent me)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
boolean |
pause(java.lang.String newMsg,
boolean add)
YakScript callback routine invoked to pause execution until
user gives a YES/NO answer |
void |
refresh(boolean isNewFrame)
Redraw the contents of the current frame
(called after frames changes or user scrolls,
also available as a callback) |
void |
reset()
Empty out a pause stack, unblocking & killing all threads within |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINUX
public static final boolean LINUX
SOUND
public static final boolean SOUND
Yakkey
public Yakkey()
main
public static void main(java.lang.String[] args)
init
public void init(java.lang.String[] args)
refresh
public void refresh(boolean isNewFrame)
- Redraw the contents of the current frame
(called after frames changes or user scrolls,
also available as a callback)
- Specified by:
refresh
in interface DisplayInterface
- Following copied from interface:
yakscript.DisplayInterface
- Returns:
- true if frame has changed and complete redraw is needed,
false if refetching text labels is enough
blank
public void blank(boolean state,
java.lang.String msg)
- YakScript callback routine invoked to (un)blank display when
lengthy processing starts/ends
- Specified by:
blank
in interface DisplayInterface
- Parameters:
state
- true to blank, false to unblankmsg
- Message to user (ignored if state = false)
pause
public boolean pause(java.lang.String newMsg,
boolean add)
- YakScript callback routine invoked to pause execution until
user gives a YES/NO answer
- Specified by:
pause
in interface DisplayInterface
- Parameters:
newMsg
- Message to user (appended to current message, if any)- Returns:
- true for left button, false for right
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent me)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
reset
public void reset()
- Empty out a pause stack, unblocking & killing all threads within
- Specified by:
reset
in interface DisplayInterface