|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.curve.AbstractContinuousCurve2D
public abstract class AbstractContinuousCurve2D
Provides a base implementation for continuous curves.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Constructor Summary | |
---|---|
AbstractContinuousCurve2D()
|
Method Summary | |
---|---|
java.awt.Shape |
asAwtShape()
|
LinearCurve2D |
asPolyline(int n)
Converts this continuous curve to an instance of LinearCurve2D with the given number of edges. |
abstract ContinuousCurve2D |
clone()
Overrides Object declaration to ensure Curve2D implementation are cloned as Curve2D. |
java.util.Collection<? extends ContinuousCurve2D> |
continuousCurves()
Returns the collection of continuous curves which constitute this curve. |
void |
draw(java.awt.Graphics2D g2)
Draws the curve on the given Graphics2D object. |
Point2D |
firstPoint()
Returns the first point of the curve. |
Point2D |
lastPoint()
Returns the last point of the curve. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
---|
appendPath, clip, curvature, isClosed, leftTangent, reverse, rightTangent, smoothPieces, subCurve, transform |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
getT0, getT1, intersections, isSingular, point, position, project, singularPoints, t0, t1, vertices |
Methods inherited from interface math.geom2d.Shape2D |
---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
Methods inherited from interface math.geom2d.GeometricObject2D |
---|
almostEquals |
Constructor Detail |
---|
public AbstractContinuousCurve2D()
Method Detail |
---|
public LinearCurve2D asPolyline(int n)
asPolyline
in interface ContinuousCurve2D
n
- the number of line segments
n
line segments.ContinuousCurve2D.asPolyline(int)
public java.util.Collection<? extends ContinuousCurve2D> continuousCurves()
Curve2D
continuousCurves
in interface Curve2D
public Point2D firstPoint()
Curve2D
point(t0())
.
firstPoint
in interface Curve2D
Curve2D.t0()
,
Curve2D.point(double)
public Point2D lastPoint()
Curve2D
this.point(this.t1())
.
lastPoint
in interface Curve2D
Curve2D.t1()
,
Curve2D.point(double)
public void draw(java.awt.Graphics2D g2)
Curve2D
draw
in interface Curve2D
draw
in interface Shape2D
g2
- the graphics to draw the curve inpublic java.awt.Shape asAwtShape()
asAwtShape
in interface Curve2D
public abstract ContinuousCurve2D clone()
Curve2D
clone
in interface Curve2D
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |