|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectmath.geom2d.curve.AbstractContinuousCurve2D
public abstract class AbstractContinuousCurve2D
Provides a base implementation for smooth curves.
| Field Summary |
|---|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY |
| Constructor Summary | |
|---|---|
AbstractContinuousCurve2D()
|
|
| Method Summary | ||
|---|---|---|
abstract ContinuousCurve2D |
clone()
Overrides Object declaration to ensure Curve2D implementation are cloned as Curve2D. |
|
void |
draw(Graphics2D g2)
Draws the curve on the given Graphics2D object. |
|
Shape |
getAsAWTShape()
|
|
Polyline2D |
getAsPolyline(int n)
Returns an approximation of the curve as a polyline with n
line segments. |
|
Collection<? extends ContinuousCurve2D> |
getContinuousCurves()
Returns the collection of continuous curves which constitute this curve. |
|
Point2D |
getFirstPoint()
Get the first point of the curve. |
|
Point2D |
getLastPoint()
Get the last point of the curve. |
|
protected static
|
wrapCurve(T curve)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
|---|
appendPath, clip, getLeftTangent, getReverseCurve, getRightTangent, getSmoothPieces, getSubCurve, isClosed, transform |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
getIntersections, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
| Constructor Detail |
|---|
public AbstractContinuousCurve2D()
| Method Detail |
|---|
protected static <T extends ContinuousCurve2D> Collection<T> wrapCurve(T curve)
public Polyline2D getAsPolyline(int n)
ContinuousCurve2Dn
line segments. If the curve is closed, the method should return an
instance of Ring2D.
getAsPolyline in interface ContinuousCurve2Dn - the number of line segments
n line segments.public Collection<? extends ContinuousCurve2D> getContinuousCurves()
Curve2D
getContinuousCurves in interface Curve2Dpublic Point2D getFirstPoint()
Curve2DgetPoint(getT0()).
getFirstPoint in interface Curve2Dpublic Point2D getLastPoint()
Curve2DgetPoint(getT1()).
getLastPoint in interface Curve2Dpublic void draw(Graphics2D g2)
Curve2D
draw in interface Curve2Ddraw in interface Shape2Dg2 - the graphics to draw the curvepublic Shape getAsAWTShape()
getAsAWTShape in interface Curve2Dpublic abstract ContinuousCurve2D clone()
Curve2D
clone in interface Curve2Dclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||