|
JHotDraw 7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.geom.Bezier
public class Bezier
Provides algorithms for fitting Bezier curves to a set of digitized points.
Source:
An Algorithm for Automatically Fitting Digitized Curves
by Philip J. Schneider.
from "Graphics Gems", Academic Press, 1990
http://ftp.arl.mil/pub/Gems/original/FitDigitizedCurves.c
Method Summary | |
---|---|
static BezierPath |
fitBezierCurve(BezierPath path,
double error)
Fit a Bezier curve to a set of digitized points. |
static java.awt.geom.GeneralPath |
fitCurve(java.awt.geom.Point2D.Double[] d,
double error)
Fit a Bezier curve to a set of digitized points. |
static java.awt.geom.GeneralPath |
fitCurve(java.awt.Polygon p,
double error)
Fit a Bezier curve to a set of digitized points. |
static void |
main(java.lang.String[] args)
Example of how to use the curve-fitting code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void main(java.lang.String[] args)
public static java.awt.geom.GeneralPath fitCurve(java.awt.Polygon p, double error)
p
- Polygon with a set of digitized points.error
- User-defined error squared.
public static java.awt.geom.GeneralPath fitCurve(java.awt.geom.Point2D.Double[] d, double error)
d
- Array of digitized points.error
- User-defined error squared.
public static BezierPath fitBezierCurve(BezierPath path, double error)
path
- The path onto which to fit a bezier curve.error
- User-defined error squared.
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |