public abstract class AbstractContinuousCurve2D extends Object implements ContinuousCurve2D, Cloneable
| Constructor and Description |
|---|
AbstractContinuousCurve2D() |
| Modifier and Type | Method and Description |
|---|---|
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 <T extends ContinuousCurve2D> |
wrapCurve(T curve) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendPath, clip, getLeftTangent, getReverseCurve, getRightTangent, getSmoothPieces, getSubCurve, isClosed, transformgetIntersections, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, projectcontains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmptyprotected 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 segmentsn line segments.public Collection<? extends ContinuousCurve2D> getContinuousCurves()
Curve2DgetContinuousCurves in interface Curve2Dpublic Point2D getFirstPoint()
Curve2DgetPoint(getT0()).getFirstPoint in interface Curve2Dpublic Point2D getLastPoint()
Curve2DgetPoint(getT1()).getLastPoint in interface Curve2Dpublic void draw(Graphics2D g2)
Curve2Dpublic Shape getAsAWTShape()
getAsAWTShape in interface Curve2DCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.