|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.tamu.bpaulson.newrecognizer.ArcFit
public class ArcFit
ArcFit class - fit a stroke to an arc
| Field Summary |
|---|
| Fields inherited from interface edu.tamu.bpaulson.newrecognizer.Fit |
|---|
ARC, ARC_INT, CIRCLE, CIRCLE_INT, COMPLEX, COMPLEX_INT, CURVE, CURVE_INT, ELLIPSE, ELLIPSE_INT, HELIX, HELIX_INT, LINE, LINE_INT, POLYLINE, POLYLINE_INT, SPIRAL, SPIRAL_INT |
| Constructor Summary | |
|---|---|
ArcFit(BStroke stroke)
Constructor for the arc fit |
|
| Method Summary | |
|---|---|
java.awt.Shape |
get2DShape()
Get the beautified version of the shape in a Graphics2D shape |
java.awt.geom.Point2D |
getCenter()
|
double |
getError()
Get the error of the fit |
java.lang.String |
getName()
Get the name of the fit (name of shape) |
double |
getRadius()
|
DrawnShape |
getShape()
Get the beautified (ideal) version of the shape |
boolean |
passed()
Specifies whether preliminary shape fit tests passed |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArcFit(BStroke stroke)
stroke - stroke to fit arc to| Method Detail |
|---|
public double getError()
Fit
getError in interface Fitpublic java.lang.String getName()
Fit
getName in interface Fitpublic DrawnShape getShape()
Fit
getShape in interface Fitpublic java.awt.Shape get2DShape()
Fit
get2DShape in interface Fitpublic boolean passed()
Fit
passed in interface Fitpublic double getRadius()
getRadius in interface CircularFitpublic java.awt.geom.Point2D getCenter()
getCenter in interface CircularFit
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||