Class Merlin
java.lang.Object
|
+----java.awt.Component
|
+----Merlin
- public class Merlin
- extends Component
- implements TimeOutable
The recognition application.
- Version:
- 1.0
- Author:
- Stefan Hellkvist
-
MULTIPLE_STROKE
-
-
SINGLE_STROKE
-
-
Merlin()
- Constructor
-
clear()
- To clear current pattern
-
getBank()
- Gets the bank
-
getLast()
-
-
getMode()
- Gets the mode
-
getPattern()
- To get the current pattern
-
main(String[])
-
The main fuction
-
mouseDragged(MouseEvent)
- Called when mouse is dragged
-
mousePressed(MouseEvent)
- Called when the mouse is pressed
-
mouseReleased(MouseEvent)
- Called when mouse is released
-
setBank(byte)
- Sets the bank
-
setMode(int)
- Sets the mode
-
setWizard(Wizard)
- Sets the wizard
-
timedOut()
- From Timeoutable interface.
SINGLE_STROKE
public static final int SINGLE_STROKE
MULTIPLE_STROKE
public static final int MULTIPLE_STROKE
Merlin
public Merlin()
- Constructor
main
public static void main(String argv[])
- The main fuction
- Parameters:
- argv - The first string of argv should be the file to read
mouse eventsfrom (normally /dev/stdin). The second string of argv is
the file to output recognized characters on (normally /dev/stdout)
timedOut
public void timedOut()
- From Timeoutable interface. This is called by a Timer
when the user has been inactive for some time
mousePressed
public void mousePressed(MouseEvent e)
- Called when the mouse is pressed
mouseReleased
public void mouseReleased(MouseEvent e)
- Called when mouse is released
mouseDragged
public void mouseDragged(MouseEvent e)
- Called when mouse is dragged
getPattern
public Pattern getPattern()
- To get the current pattern
- Returns:
- the pattern currently on the Merlin
clear
public void clear()
- To clear current pattern
getLast
public Pattern getLast()
- Returns:
- The last pattern drawn
setWizard
public void setWizard(Wizard wiz)
- Sets the wizard
- Parameters:
- wiz - The new wizard to use
setMode
public void setMode(int mode)
- Sets the mode
- Parameters:
- mode - The new mode
getMode
public int getMode()
- Gets the mode
- Returns:
- The mode
setBank
public void setBank(byte bank)
- Sets the bank
- Parameters:
- bank - The new mode
getBank
public byte getBank()
- Gets the bank
- Returns:
- The bank