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

Variable Index

 o MULTIPLE_STROKE
 o SINGLE_STROKE

Constructor Index

 o Merlin()
Constructor

Method Index

 o clear()
To clear current pattern
 o getBank()
Gets the bank
 o getLast()
 o getMode()
Gets the mode
 o getPattern()
To get the current pattern
 o main(String[])
The main fuction
 o mouseDragged(MouseEvent)
Called when mouse is dragged
 o mousePressed(MouseEvent)
Called when the mouse is pressed
 o mouseReleased(MouseEvent)
Called when mouse is released
 o setBank(byte)
Sets the bank
 o setMode(int)
Sets the mode
 o setWizard(Wizard)
Sets the wizard
 o timedOut()
From Timeoutable interface.

Variables

 o SINGLE_STROKE
 public static final int SINGLE_STROKE
 o MULTIPLE_STROKE
 public static final int MULTIPLE_STROKE

Constructors

 o Merlin
 public Merlin()
Constructor

Methods

 o 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)
 o timedOut
 public void timedOut()
From Timeoutable interface. This is called by a Timer when the user has been inactive for some time

 o mousePressed
 public void mousePressed(MouseEvent e)
Called when the mouse is pressed

 o mouseReleased
 public void mouseReleased(MouseEvent e)
Called when mouse is released

 o mouseDragged
 public void mouseDragged(MouseEvent e)
Called when mouse is dragged

 o getPattern
 public Pattern getPattern()
To get the current pattern

Returns:
the pattern currently on the Merlin
 o clear
 public void clear()
To clear current pattern

 o getLast
 public Pattern getLast()
Returns:
The last pattern drawn
 o setWizard
 public void setWizard(Wizard wiz)
Sets the wizard

Parameters:
wiz - The new wizard to use
 o setMode
 public void setMode(int mode)
Sets the mode

Parameters:
mode - The new mode
 o getMode
 public int getMode()
Gets the mode

Returns:
The mode
 o setBank
 public void setBank(byte bank)
Sets the bank

Parameters:
bank - The new mode
 o getBank
 public byte getBank()
Gets the bank

Returns:
The bank