All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class merlin.util.Pattern

java.lang.Object
   |
   +----merlin.util.Pattern

public class Pattern
extends Object
The representation of a pattern.

Version:
1.0
Author:
Stefan Hellkvist

Variable Index

 o ascii
The meaning of this pattern.

Constructor Index

 o Pattern()
Class constructor.

Method Index

 o addStroke(Vector)
Adds a stroke.
 o loadStrokes(String)
Adds strokes from a file.
 o storeOn(String)
Store pattern on a file.
 o strokes()
Returns the strokes as an Enumeration.

Variables

 o ascii
 public char ascii
The meaning of this pattern. What ascii character it represents

Constructors

 o Pattern
 public Pattern()
Class constructor.

Methods

 o addStroke
 public void addStroke(Vector s)
Adds a stroke. A stroke is represented as a Vector of Points, starting with the Point first drawn.

Parameters:
s - The stroke
 o loadStrokes
 public void loadStrokes(String filename)
Adds strokes from a file. The format of the file is the format used by Rob Kassel in his PhD-thesis:
A comparison of Approaches to On-line Handwritten Character Recognition

Parameters:
s - The filename
 o storeOn
 public void storeOn(String filename)
Store pattern on a file. The format of the file is the format used by Rob Kassel in his PhD-thesis:
A comparison of Approaches to On-line Handwritten Character Recognition

Parameters:
s - The filename
 o strokes
 public Enumeration strokes()
Returns the strokes as an Enumeration.

Returns:
The enumeration

All Packages  Class Hierarchy  This Package  Previous  Next  Index