edu.mit.sketch.uml
Class UMLCreateUMLChecker

java.lang.Object
  |
  +--edu.mit.sketch.uml.UMLCreateUMLChecker
All Implemented Interfaces:
Cloneable, Serializable
Direct Known Subclasses:
UMLArrowChecker, UMLCreateInterfaceChecker, UMLCreateLinkChecker, UMLCreateObjectChecker

public abstract class UMLCreateUMLChecker
extends Object
implements Serializable, Cloneable

See Also:
Serialized Form

Field Summary
protected  Vector allPoints
           
protected  Vector examine_strokes
           
protected  int num_strokes
           
protected  Vector program_strokes
           
protected  double totalStrokesLength
           
 
Constructor Summary
UMLCreateUMLChecker()
           
 
Method Summary
 Object clone()
          Clone current object
 Vector getExamineStrokes()
           
protected  Vector makePointVector()
          Creates a point vector of the last n strokes from the program
 void recognizeStrokes()
           
protected  boolean strokesJoined(Vector examine_strokes)
          Checks if head points are close to one another.
protected  double strokesLength()
          Returns the total length of a bunch of strokes
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num_strokes

protected int num_strokes

program_strokes

protected Vector program_strokes

examine_strokes

protected Vector examine_strokes

totalStrokesLength

protected double totalStrokesLength

allPoints

protected Vector allPoints
Constructor Detail

UMLCreateUMLChecker

public UMLCreateUMLChecker()
Method Detail

clone

public Object clone()
Clone current object
Overrides:
clone in class Object

getExamineStrokes

public Vector getExamineStrokes()

recognizeStrokes

public void recognizeStrokes()

makePointVector

protected Vector makePointVector()
Creates a point vector of the last n strokes from the program

strokesLength

protected double strokesLength()
Returns the total length of a bunch of strokes

strokesJoined

protected boolean strokesJoined(Vector examine_strokes)
Checks if head points are close to one another. Should also check if they intersect. (just as good)