edu.mit.sketch.toolkit
Interface ErrorCalculator


public interface ErrorCalculator

The interface ErrorCalculator. Allows the user to define customized error measures


Method Summary
 double getEllipseError(StrokeData stroke_data, Ellipse ellipse)
          Get the error between the stroke_data and the shape.
 double getGeneralPathError(StrokeData stroke_data, GeneralPath general_path)
          Get the error between the stroke_data and the shape.
 double getLineError(StrokeData stroke_data, Line line)
          Get the error between the stroke_data and the shape.
 double getPolygonError(StrokeData stroke_data, Polygon poly)
          Get the error between the stroke_data and the shape.
 

Method Detail

getPolygonError

public double getPolygonError(StrokeData stroke_data,
                              Polygon poly)
Get the error between the stroke_data and the shape.

getLineError

public double getLineError(StrokeData stroke_data,
                           Line line)
Get the error between the stroke_data and the shape.

getEllipseError

public double getEllipseError(StrokeData stroke_data,
                              Ellipse ellipse)
Get the error between the stroke_data and the shape.

getGeneralPathError

public double getGeneralPathError(StrokeData stroke_data,
                                  GeneralPath general_path)
Get the error between the stroke_data and the shape.